<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: query sql via infopath button</title><link>https://www.infopathdev.com:443/forums/thread/2843.aspx</link><pubDate>Wed, 26 Jul 2006 08:11:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2843</guid><dc:creator>jonboy05</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2843</wfw:commentRss><description>Sorry you lost me on that Abhishek.&lt;br /&gt;&lt;br /&gt;View 1 shows only two fields from the sql database that the form is linked to.&lt;br /&gt;&lt;br /&gt;View 2 is going to be the edit view but as you can tell I can not get my head around the way to pass the record id from view 1 from view 2.&lt;br /&gt;&lt;br /&gt;can this by done by a rule as I can not code?&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: query sql via infopath button</title><link>https://www.infopathdev.com:443/forums/thread/2842.aspx</link><pubDate>Wed, 26 Jul 2006 07:25:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2842</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2842</wfw:commentRss><description>Hi jonboy05,&lt;br /&gt;Hope my understanding is right.&lt;br /&gt;&lt;br /&gt;Your first view contains a repeating table containing multiple rows.And each row contains a button.So on clicking the button in row1, u should be able to modify the row1 details in another view.&lt;br /&gt;&lt;br /&gt;U can use code to achieve this.&lt;br /&gt;Follow the following steps.&lt;br /&gt;1)On the onclick event of the row1 button,use a web service to query the database and fetch the row1 details.&lt;br /&gt;&lt;br /&gt;2)So u have the row1 details in  secondary datasource fields.Transfer them to fields in main datasource and display these in view2.&lt;br /&gt;&lt;br /&gt;3)In view2, the user will edit the details and click on a "Ok" button.&lt;br /&gt;&lt;br /&gt;4)On the onclick event of the "Ok" button in view2,update the edited data in the database,refresh the repeating table in view1 so that it displays updated data, and switch view to View1.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: query sql via infopath button</title><link>https://www.infopathdev.com:443/forums/thread/2841.aspx</link><pubDate>Tue, 25 Jul 2006 15:25:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2841</guid><dc:creator>jonboy05</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2841</wfw:commentRss><description>The button is only passing over the first record in the database and not the record next to the button in my repeating table.&lt;br /&gt;&lt;br /&gt;The button is on the same row as the record and it should only display that record after it is pressed.&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;</description></item><item><title>Re: query sql via infopath button</title><link>https://www.infopathdev.com:443/forums/thread/2840.aspx</link><pubDate>Tue, 25 Jul 2006 15:15:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2840</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2840</wfw:commentRss><description>Hi Jonathan and welcome to the forum!&lt;br /&gt;&lt;br /&gt;You could do this with either rules or code, but rules would probably be the easiest to implement.  First, drop your button wherever you want it to be displayed, and then double-click it.  Click Rules, and then click Add.  Name it something descriptive and then click Add Action.  You want this to fire all the time, so don't worry about adding a condition.  For the first action select "Query a data source" from the drop-down menu, choose the data source to be queried, and then click OK. Now, click Add Action again, but this time choose "Switch to another view", select the view you would like to switch to, and then click OK until you are back to where you started.&lt;br /&gt;&lt;br /&gt;Hope this helps!</description></item><item><title>query sql via infopath button</title><link>https://www.infopathdev.com:443/forums/thread/1437.aspx</link><pubDate>Tue, 25 Jul 2006 14:52:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1437</guid><dc:creator>jonboy05</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1437</wfw:commentRss><description>I am building a form and wish to use a button to move to a new view. At the same time the button has to pass only one record form the database to the new view so it can be edited.&lt;br /&gt;&lt;br /&gt;How would I do that?&lt;br /&gt;&lt;br /&gt;thanks &lt;br /&gt;&lt;br /&gt;jonathan</description></item></channel></rss>