<?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: User selection of table row possible</title><link>https://www.infopathdev.com:443/forums/thread/21688.aspx</link><pubDate>Mon, 16 Jul 2007 15:26:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21688</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21688</wfw:commentRss><description>Mal sehen ob ich das hier richtig versteh. I guess the xPath for your repeating table is dfs:myFields/dfs:datafields/d:Products so if you for example would like to get the values of the third row of your repeating values you had to use dfs:myFields/dfs:datafields[3]/d:Products but instead of the 3 as index you have to use current() function. just play arround with it a bit an i guess you should get it work. gonna have a look if i have a concrete example flying around somewhere. hope this helps already a bit. anyway you don&amp;#39;t need to add a new column to your database table</description></item><item><title>Re: User selection of table row possible</title><link>https://www.infopathdev.com:443/forums/thread/21684.aspx</link><pubDate>Mon, 16 Jul 2007 13:40:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21684</guid><dc:creator>moestavern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21684.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21684</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks for the quick response. If I get you write, I need to add an additional column to my Products table called &amp;quot;Selected&amp;quot; or something. Then I need to write the &amp;quot;X&amp;quot; to the database ?&lt;/p&gt;&lt;p&gt;Could you paste your XPath search string to get the row which the user selected. I am struggling with the XPath syntax (or. let&amp;#39;s say, I have to get used to it ;-) ).&lt;/p&gt;&lt;p&gt;This is how my template looks like&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dfs:queryFields&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;q:Products product_id=&amp;quot;&amp;quot; SHORT_TEXT=&amp;quot;&amp;quot; selected=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/q:Products&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dfs:queryFields&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dfs:dataFields&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Products product_id=&amp;quot;&amp;quot; SHORT_TEXT=&amp;quot;&amp;quot; selected=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/d:Products&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dfs:dataFields&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:besuchsbericht&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:bblines&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:bb_prodid&amp;gt;&amp;lt;/my:bb_prodid&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:bb_shorttext&amp;gt;&amp;lt;/my:bb_shorttext&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:bb_freetext&amp;gt;&amp;lt;/my:bb_freetext&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:bb_amount&amp;gt;&amp;lt;/my:bb_amount&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/my:bblines&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/my:besuchsbericht&amp;gt;&lt;/p&gt;&lt;p&gt;So my user can enter product_id or short_text and search the db for this. Then, he can select one (or more) of the query result table and push the button. &lt;/p&gt;&lt;p&gt;How would the XPath lookup fo the selected row look like ?&lt;/p&gt;&lt;p&gt;objSource = dom.selectSingleNode(&amp;quot;/dfs:myFields/dfs:datafields/d:Products&amp;quot;);
	var strSelected = null;
	strSelected = objSource.selectSingleNode(&amp;quot;//product_id[@selected==&amp;#39;X&amp;#39;]&amp;quot;);&lt;/p&gt;&lt;p&gt;doesnt work for me&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: User selection of table row possible</title><link>https://www.infopathdev.com:443/forums/thread/21679.aspx</link><pubDate>Mon, 16 Jul 2007 12:47:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21679</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21679</wfw:commentRss><description>&lt;p&gt;What I have typically done is added a field to my DB table that is a flag column or used another field in the table for this purpose.&lt;/p&gt;&lt;p&gt;Then my add button has a rule to update this field to x when checked.&amp;nbsp;Next it copies the row where the field = x to your new section. And finally reset all fields to not x or default.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You should also be able to&amp;nbsp;use the current function or get the key from the current row and the button to be able to select the data specifically but that is how I have done it in the past.&amp;nbsp;&lt;/p&gt;</description></item><item><title>User selection of table row possible</title><link>https://www.infopathdev.com:443/forums/thread/21673.aspx</link><pubDate>Mon, 16 Jul 2007 11:43:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21673</guid><dc:creator>moestavern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=21673</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I have a form which allows the user to search in a products db. The query result is currently displayed in a repeating table control.&lt;/p&gt;&lt;p&gt;Now, what I want to do is:&lt;/p&gt;&lt;p&gt;- Let the user select one of the lines of the repqeating table control&lt;/p&gt;&lt;p&gt;- Let the user press a button &amp;quot;add&amp;quot;, upon which I want to programmatically get the values of the single row the user selected, and insert those values into a secondary repeating table.&lt;/p&gt;&lt;p&gt;I have some code which inserts form values programmatically, but I didn&amp;#39;t find anything yet for the topic of &amp;quot;how to get the values of the row a user selected&amp;quot;.&lt;/p&gt;&lt;p&gt;Hope this makes sense &amp;amp;&amp;amp; greetings from Germany.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>