<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Pass a parameter to a web service at runtime? : InfoPath 2007 Rules and Cascading Dropdowns</title><link>https://www.infopathdev.com:443/forums/thread/39759.aspx</link><pubDate>Thu, 19 Mar 2009 21:39:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39759</guid><dc:creator>Veera</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=39759</wfw:commentRss><description>&lt;font face="Verdana" size="2"&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have developed a&amp;nbsp;custom Document Information Panel (DIP) using a web service data connection for&amp;nbsp;cascading dropdowns functionality. I am able to filter the&amp;nbsp;dropdown values using web service parameters with rules. I can filter the dropdowns bi-directional. I have written a web service in such a way that it can filter the values bi-directional. E.g. If I select country, the state dropdown will be populated with appropriate states. If I select state, the country dropdown will be populated with appropriate countries. I have also added a refresh button to refresh the dropdowns for initial selection. User&amp;nbsp;can refresh the dropdowns at any point of time. &lt;/p&gt;
&lt;p&gt;I achieved this using InfoPath 2007 rules. The downside of this approach was I am not able to select the default value for second dropdown upon selection (Because it is recursive...and will end up in a loop while executing the rules). The dropdown value is empty and user needs to select the appropriate value. In my current requirement I have eight cascading dropdowns are there in the InfoPath form.&lt;/p&gt;
&lt;p&gt;How to set the default value in my requirement? The default value would be second value in the current selection.&amp;nbsp;Is there a way to do using code? Any help appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Veera&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Pass a parameter to a web service at runtime?</title><link>https://www.infopathdev.com:443/forums/thread/29656.aspx</link><pubDate>Mon, 23 Jun 2008 22:29:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29656</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29656</wfw:commentRss><description>&lt;p&gt;Great! Glad to have helped!&lt;/p&gt;</description></item><item><title>Re: Pass a parameter to a web service at runtime?</title><link>https://www.infopathdev.com:443/forums/thread/29537.aspx</link><pubDate>Fri, 20 Jun 2008 10:59:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29537</guid><dc:creator>Bleak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29537</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok, thanks. Pretty obvious, in retrospect.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pass a parameter to a web service at runtime?</title><link>https://www.infopathdev.com:443/forums/thread/29454.aspx</link><pubDate>Tue, 17 Jun 2008 23:07:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29454</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29454.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29454</wfw:commentRss><description>&lt;p&gt;Every data connection has a DOM associated with it. You can use a rule to set the query parameter in the DOM of your WS, and then query the WS. Set up your second drop-down to get all of it&amp;#39;s display/value pairs from the WS results.&lt;/p&gt;</description></item><item><title>Pass a parameter to a web service at runtime?</title><link>https://www.infopathdev.com:443/forums/thread/29432.aspx</link><pubDate>Tue, 17 Jun 2008 13:35:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29432</guid><dc:creator>Bleak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29432.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29432</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to implement a web service based cascading drop down solution (countries-cities).&lt;/p&gt;&lt;p&gt;For this I have built an LDAP web service that gets the necessary second-level data (cities) once provided with a parameter (country).&lt;/p&gt;&lt;p&gt;This parameter needs to be passed from the first drop down to the web service.&lt;/p&gt;&lt;p&gt;How&amp;nbsp; can I perform the following steps:&lt;/p&gt;&lt;p&gt;1. Pass the current first drop down value to the webservice&lt;/p&gt;&lt;p&gt;2. Assign the resulting location list to the second drop down.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PS: I&amp;#39;m writing everything in C# and my form must be browser-enabled.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>