<?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: Populating a drop-down list thru code</title><link>https://www.infopathdev.com:443/forums/thread/12074.aspx</link><pubDate>Wed, 28 Mar 2007 08:40:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12074</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12074</wfw:commentRss><description>Hi anandhienator,&lt;br /&gt;&lt;br /&gt;The logic itself is there in the script only, In that what ever the values you are taking, take those values in the arraylist so that while comparing take the values from arraylist.&lt;br /&gt;&lt;br /&gt;before that do like this, drag the another copy of drop down list box and run the application. the copy of dropdown list box will show your selected item. that the value is saving in the combobox memory.&lt;br /&gt;&lt;br /&gt;So compare the combobox value with the arraylist elements you can get the result.&lt;br /&gt;&lt;br /&gt;Hope this will help you..</description></item><item><title>Re: Populating a drop-down list thru code</title><link>https://www.infopathdev.com:443/forums/thread/12073.aspx</link><pubDate>Wed, 28 Mar 2007 06:51:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12073</guid><dc:creator>anandhienator</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12073</wfw:commentRss><description>Hello Shiva,&lt;br /&gt;&lt;br /&gt;I had a look at the code that u asked me to. But i am coding in C#.net and not scripting. Could you help ??&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Anandhi</description></item><item><title>Re: Populating a drop-down list thru code</title><link>https://www.infopathdev.com:443/forums/thread/12072.aspx</link><pubDate>Tue, 27 Mar 2007 14:21:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12072</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12072</wfw:commentRss><description>Hi anandhienator,&lt;br /&gt;&lt;br /&gt;down load the example link "Download fully editable dropdown list box, v1.5" and see the code, you will get the solution.&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/examples/default.aspx?i=0672a57e920b4771b62b1c22d5bd314d&gt;http://infopathdev.com/howto/examples/default.aspx?i=0672a57e920b4771b62b1c22d5bd314d&lt;/a&gt;</description></item><item><title>Re: Populating a drop-down list thru code</title><link>https://www.infopathdev.com:443/forums/thread/12071.aspx</link><pubDate>Tue, 27 Mar 2007 11:17:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12071</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12071.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12071</wfw:commentRss><description>Hi anandhienator, &lt;br /&gt;&lt;br /&gt;Ramana is asking about, from which event you are calling the method PopulateDropdown. If that event is generating repeatedly the field values will refresh at every time. Check once the events.</description></item><item><title>Re: Populating a drop-down list thru code</title><link>https://www.infopathdev.com:443/forums/thread/12070.aspx</link><pubDate>Tue, 27 Mar 2007 05:11:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12070</guid><dc:creator>anandhienator</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12070.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12070</wfw:commentRss><description>Hello Ramana,&lt;br /&gt;&lt;br /&gt;First of all, thanks a lot for replying. I have shown the code snippet as below.. Please have a look at the same and tell me what to do. My function's name is PopulateDropdown(parameter). As the code that i checked out, it said i need to call it the way i have called here in this snippet. &lt;br /&gt;Please let me know how can i call this on the load event ? &lt;br /&gt;This is actually the view1.xsl file that's available in the InfoPath form template project.&lt;br /&gt;&lt;br /&gt;Awaiting reply soon.. Please.. &lt;br /&gt;&lt;br /&gt;//--------------- code snippet ----------------------------&lt;br /&gt;&amp;lt;xsl:template match="my:group1" mode="xd:preserve"&amp;gt;&lt;br /&gt;		&amp;lt;div class="xdSection xdRepeating" title="" style="MARGIN-BOTTOM: 6px; WIDTH: 651px" align="left" xd:xctname="Section" xd:CtrlId="CTRL1" tabIndex="-1"&amp;gt;&lt;br /&gt;			&amp;lt;div&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;			&amp;lt;div&amp;gt;&lt;br /&gt;				&amp;lt;select class="xdComboBox xdBehavior_Select" title="" size="1" xd:xctname="dropdown" xd:CtrlId="CTRL2" tabIndex="0" xd:binding="my:dropDown1" xd:boundProp="value" style="WIDTH: 130px"&amp;gt;&lt;br /&gt;&amp;lt;option&amp;gt;&lt;br /&gt;	&lt;br /&gt;&amp;lt;xsl:value-of select="&lt;b&gt;xdExtension:PopulateDropdown(string(my:BoundField))&lt;/b&gt;" disable-output-escaping="yes"&amp;gt;&amp;lt;/xsl:value-of&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&lt;br /&gt;				&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;// ------------------------ snippet ends here ------------------&lt;br /&gt;</description></item><item><title>Re: Populating a drop-down list thru code</title><link>https://www.infopathdev.com:443/forums/thread/12069.aspx</link><pubDate>Mon, 26 Mar 2007 13:52:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12069</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=12069</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Where you have written the function(example: Onload and etc..)?&lt;br /&gt;</description></item><item><title>Populating a drop-down list thru code</title><link>https://www.infopathdev.com:443/forums/thread/11775.aspx</link><pubDate>Mon, 26 Mar 2007 11:53:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11775</guid><dc:creator>anandhienator</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11775</wfw:commentRss><description>Hi All,&lt;br /&gt;&lt;br /&gt;I went thru the article on this forum about how to populate the drop down list via code. The code is working fine except for the fact that the function for populating the dropdown is getting called again and again.. Because of this, i am not able to select a particular values from the dropdown list.. &lt;br /&gt;&lt;br /&gt;Could anybody please help ??&lt;br /&gt;Awaiting reply as soon as possible.&lt;br /&gt;Regards,&lt;br /&gt;Anandhi</description></item></channel></rss>