<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can i add a control dynamically in Onload event (using Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/42683.aspx</link><pubDate>Wed, 10 Jun 2009 11:04:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42683</guid><dc:creator>Harsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42683.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42683</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;Thanks for the reply. i have solved half problem by the following code.&amp;nbsp;I can loop that code i times so i will get i rows.This is working fine for me.&lt;/p&gt;
&lt;p&gt;Dim parent &lt;br /&gt;Dim child &lt;br /&gt;dim rowClone &lt;br /&gt;Set parent =XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:group23&amp;quot;) &lt;br /&gt;Set child = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:group23/my:group24&amp;quot;) &lt;br /&gt;Set rowClone= child.cloneNode(true) &lt;br /&gt;&amp;#39;rowClone.selectSingleNode(&amp;quot;my:txtAA&amp;quot;).text =&amp;quot;aa&amp;quot; &lt;br /&gt;&amp;#39;rowClone.selectSingleNode(&amp;quot;my:txtBB&amp;quot;).text =&amp;quot;BB&amp;quot; &lt;br /&gt;&amp;#39;rowClone.selectSingleNode(&amp;quot;my:txtDD&amp;quot;).text =&amp;quot;CC&amp;quot; &lt;br /&gt;Call parent.appendChild(rowClone)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Now the problem is that&amp;nbsp;&amp;nbsp;i need to show the dropdowns selected as i described.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So the problem changed to &amp;#39;how to show desired selected item in dropdown&amp;#39;&lt;br /&gt;DO anyone one have its answer ??&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks &lt;br /&gt;Harsh&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can i add a control dynamically in Onload event (using Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/42676.aspx</link><pubDate>Wed, 10 Jun 2009 07:02:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42676</guid><dc:creator>Rajitha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42676</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Add a repeating field in schema and put rule for repeating field that if the drop down fetches zero rows then hide repeating field. &lt;/p&gt;
&lt;p&gt;Add an on after change event for the field. And get the repeating node from the sample xml and add it to the parent group node of repeating field. &lt;/p&gt;
&lt;p&gt;Refer this for more:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/10129/36002.aspx#36002"&gt;http://www.infopathdev.com/forums/p/10129/36002.aspx#36002&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Can i add a control dynamically in Onload event (using Infopath 2003)</title><link>https://www.infopathdev.com:443/forums/thread/42671.aspx</link><pubDate>Wed, 10 Jun 2009 06:14:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42671</guid><dc:creator>Harsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42671</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;I need to show all items of a dropdown in diffrent row.Each row is dynamic and contain a dropdown with ith element selected.&lt;br /&gt;For eg. If my dropdown&amp;nbsp;is fetching 3 items A,B and C from DB in OnLoad event then i need to show 3 rows first with A selected,second with B selected and 3rd with C selected in OnLoad event.&lt;/p&gt;
&lt;p&gt;Is it possible in Infopath 2003 or 2007???&lt;br /&gt;I think i would manage if there is any way to dynamically add any control in infopath.&lt;/p&gt;
&lt;p&gt;Thanks &lt;br /&gt;Harsh Vardhan Saini&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>