<?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: How to show selected item in dropdown?</title><link>https://www.infopathdev.com:443/forums/thread/42942.aspx</link><pubDate>Mon, 15 Jun 2009 14:15:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42942</guid><dc:creator>Harsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42942.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42942</wfw:commentRss><description>&lt;p&gt;Xpath of dropdown is &lt;br /&gt;myFields/Level1/Level2/ddMachineCenter&lt;br /&gt;&lt;br /&gt;DropDown XML structure &lt;br /&gt;MCs/MC&lt;br /&gt;&lt;br /&gt;DataSource Query&lt;br /&gt;&amp;quot;Select&amp;nbsp;MachineCenterName from MachineCenters&amp;quot;&lt;br /&gt;hence i am binding &amp;#39;MachineCenterName&amp;#39;&lt;br /&gt;&lt;br /&gt;Please tell me if its helpful enough to understand my problem or i need to send u some thing more?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to show selected item in dropdown?</title><link>https://www.infopathdev.com:443/forums/thread/42695.aspx</link><pubDate>Wed, 10 Jun 2009 13:17:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42695</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42695</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Give me the xpath of the drop down list and the xpath of the value you want to show in your drop down list and also give the name of the secondary data source.&lt;/p&gt;</description></item><item><title>Re: How to show selected item in dropdown?</title><link>https://www.infopathdev.com:443/forums/thread/42693.aspx</link><pubDate>Wed, 10 Jun 2009 13:11:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42693</guid><dc:creator>Harsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42693.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42693</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;i couldn&amp;#39;t figure out where to paste the code u have given ,in my design template( u said &lt;span class="Apple-style-span" style="WORD-SPACING:0px;FONT:13px verdana;TEXT-TRANSFORM:none;TEXT-INDENT:0px;WHITE-SPACE:normal;LETTER-SPACING:normal;BORDER-COLLAPSE:collapse;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0;"&gt;Place the above expression in the index of repeating group.) where it is??&lt;/span&gt;&lt;br /&gt;Please explain it step by step if poossible and what is Empid and grp2 in the code?&lt;br /&gt;will it give me the desired result as i mentioned?&lt;/p&gt;</description></item><item><title>Re: How to show selected item in dropdown?</title><link>https://www.infopathdev.com:443/forums/thread/42691.aspx</link><pubDate>Wed, 10 Jun 2009 12:50:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42691</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42691.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42691</wfw:commentRss><description>Hi Harsh,&lt;br /&gt;&amp;nbsp;&lt;br /&gt;May I know why do you want to set the value using code?&lt;br /&gt;It is easy that the way I expained in the forum without using code even though you are creating the rows through code.</description></item><item><title>Re: How to show selected item in dropdown?</title><link>https://www.infopathdev.com:443/forums/thread/42690.aspx</link><pubDate>Wed, 10 Jun 2009 12:41:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42690</guid><dc:creator>Harsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42690</wfw:commentRss><description>&lt;p&gt;Hi swathip,&lt;br /&gt;Thanks for the reply.But can you make a bit easy by explaning the things.&lt;br /&gt;Actually i am using VB script for my infopath form. &lt;br /&gt;What i am looking for is the VB script code by which i can set the dropdown with ith element.&lt;br /&gt;For eg. if there are 3 items in dropdown list then there should be 3 rows each containing dropdown .First dropdown should have 1st item slected,second dropdown should have second item selected and so on.&lt;br /&gt;currently i am able to generate the &amp;#39;i&amp;#39; rows&amp;nbsp; dynamically each having the dropdown,but anable to show them selected.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Please help me.and if possible send me some sample code in vbscript.&lt;/p&gt;</description></item><item><title>Re: How to show selected item in dropdown?</title><link>https://www.infopathdev.com:443/forums/thread/42688.aspx</link><pubDate>Wed, 10 Jun 2009 12:14:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42688</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42688</wfw:commentRss><description>&amp;nbsp;Hi, 
&lt;p&gt;Get the ith value using the following expression.&lt;/p&gt;
&lt;p&gt;count(../preceding-sibling::my:group2) + 1&lt;/p&gt;
&lt;p&gt;get the xpath of the value which you want to display in the drop down (i.e., secondary data source xpath). Place the above expression in the index of repeating group.&lt;/p&gt;
&lt;p&gt;For ex: xdXDocument:GetDOM(&amp;quot;emp&amp;quot;)/Emps/Emp[count(current()/../preceding-sibling::my:group2) + 1]/EmpID&lt;/p&gt;
&lt;p&gt;Here emp is a secondary xml.&lt;/p&gt;</description></item><item><title>How to show selected item in dropdown?</title><link>https://www.infopathdev.com:443/forums/thread/42687.aspx</link><pubDate>Wed, 10 Jun 2009 11:38:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42687</guid><dc:creator>Harsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42687</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;I need to show the ith&amp;nbsp;item of dropdown as selected.&lt;br /&gt;How can i achieve that in infopath&amp;#39;s dropdown?&lt;/p&gt;
&lt;p&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></channel></rss>