<?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: numbered repeating tables and get this numbers with dropdownlist change event?</title><link>https://www.infopathdev.com:443/forums/thread/32371.aspx</link><pubDate>Fri, 19 Sep 2008 10:01:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32371</guid><dc:creator>alicoskun</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32371.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32371</wfw:commentRss><description>&lt;p&gt;Thanks for the response Shiva,&lt;/p&gt;
&lt;p&gt;I found what i need. i just want to take the selected tables value in dropdownlist change event. with this code i can take it.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;#region&lt;/font&gt;&lt;font size="2"&gt; Take the Equipment number&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; EquipmentNo = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Check if value has changed and not a table insertion&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (e.Operation == &lt;/font&gt;&lt;font color="#008080" size="2"&gt;XmlOperation&lt;/font&gt;&lt;font size="2"&gt;.ValueChange)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Get Current Row&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; xNavigator = e.Site;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; bParent = xNavigator.MoveToParent();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Get Reference to the Gross Value&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; xField = xNavigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:EquipmentNo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;EquipmentNo = xField.InnerXml;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;#endregion&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: numbered repeating tables and get this numbers with dropdownlist change event?</title><link>https://www.infopathdev.com:443/forums/thread/32367.aspx</link><pubDate>Fri, 19 Sep 2008 08:51:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32367</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32367.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32367</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you want to increase the repeating table number when you change the drop down value then you have to write the code in drop down change event. &lt;/p&gt;
&lt;p&gt;Where do you want to set incremented repeating number value? For the last repeating node?&lt;/p&gt;
&lt;p&gt;Can you give more details on why do you want to increase the repeating table value for changing of drop down value? What is the schema structure for these repeating table and drop down node? By doing this if user this change will effect for every drop down value change. Is it your requirement?&lt;/p&gt;</description></item><item><title>numbered repeating tables and get this numbers with dropdownlist change event?</title><link>https://www.infopathdev.com:443/forums/thread/32363.aspx</link><pubDate>Fri, 19 Sep 2008 07:42:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32363</guid><dc:creator>alicoskun</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32363</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am new in infopath, i am giving numbers to the repeating tables, when user&amp;nbsp;&amp;nbsp;click insert item than a new table comes and its number will become equipmentno: 2 and increasing, i want to take this number when the dropdownlist onchange event . i can get&amp;nbsp;only table numbers with:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;string&lt;/font&gt;&lt;font size="2"&gt; EquipmentNo =&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; nav = MainDataSource.CreateNavigator();&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;font size="2"&gt; iter = nav.Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group3/my:group4/my:EquipmentNo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;while&lt;/font&gt;&lt;font size="2"&gt; (iter.MoveNext())&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;EquipmentNo = iter.Current.Value;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;but this just give me the last euipmentno. now i want to take the table number which i change the dropdownlist value. &lt;/p&gt;
&lt;p&gt;----------------------&amp;nbsp;&lt;/p&gt;
&lt;p&gt;with button click event i can get the repeating table&amp;#39;s number: &lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; CTRL151_7_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; str = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:EquipmentNo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;but i want to get this value in dropdownlist changed event.&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; EquipmentDDL_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Any help would be appreciated , thanks,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Ali&lt;/p&gt;&lt;/font&gt;&lt;/div&gt;</description></item></channel></rss>