<?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: DropDown</title><link>https://www.infopathdev.com:443/forums/thread/3441.aspx</link><pubDate>Tue, 07 Nov 2006 04:28:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3441</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3441</wfw:commentRss><description>Hi Travis,&lt;br /&gt;       Double click on the dropdown to open the dropdown listbox dialog.&lt;br /&gt;&lt;br /&gt;Click Data Validation, select the OnafterChange event in the Events dropdown and click Edit.&lt;br /&gt;&lt;br /&gt;In the eventhandler,typing "e.Site.text" gives u the newly selected value in the dropdown. &lt;br /&gt;&lt;br /&gt;Send this value to the web service.&lt;br /&gt;&lt;br /&gt;U can also accomplish this using rules too.&lt;br /&gt;&lt;br /&gt;Instead of Datavalidation,click "Rules" in the dropdown properties dialog.&lt;br /&gt;&lt;br /&gt;Add a rule "Submit using Data Connection" to a web service. The rules that u specify will apply actions when the user changes a value in the control.&lt;br /&gt;&lt;br /&gt;hope that helps.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: DropDown</title><link>https://www.infopathdev.com:443/forums/thread/3440.aspx</link><pubDate>Mon, 06 Nov 2006 13:47:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3440</guid><dc:creator>travisBickle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3440.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3440</wfw:commentRss><description>Sorry for the confusion what i mean is:&lt;br /&gt;&lt;br /&gt;When i get the data from the webservice using the combo box bound to webservice is will set the dropdown to the approriate value.&lt;br /&gt;&lt;br /&gt;However, if this value is changed and i want to capture it to post back to webservice i cannot get the combo box value.&lt;br /&gt;&lt;br /&gt;hope that makes sense.</description></item><item><title>Re: DropDown</title><link>https://www.infopathdev.com:443/forums/thread/3439.aspx</link><pubDate>Mon, 06 Nov 2006 13:10:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3439</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3439</wfw:commentRss><description>Hi TravisBickle,&lt;br /&gt;      When u hardcode values in the dropdown manually,u have the option to select the default value in the listbox properties dialog.Thats why u can find the value selected by default in ur dropdown.&lt;br /&gt;&lt;br /&gt;So how do u set the default selected value for the dropdown when u bind the dropdown to a web service?&lt;br /&gt;&lt;br /&gt;Do as follows...&lt;br /&gt;Assume ur web service returns aaa,bbb,ccc,ddd.&lt;br /&gt;And u need to automatically set "ddd" as the selected value in the dropdown,&lt;br /&gt;&lt;br /&gt;Go to the data source taskpane and double click the field to which ur dropdown is bound..Lets say "cmbRecommendation"&lt;br /&gt;&lt;br /&gt;Set the default value of the field cmbRecommendation to "ddd" in the dialog box that opens.&lt;br /&gt;&lt;br /&gt;Now the web service bound dropdown shows "ddd" by default as the selected value.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>DropDown</title><link>https://www.infopathdev.com:443/forums/thread/1649.aspx</link><pubDate>Mon, 06 Nov 2006 11:34:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1649</guid><dc:creator>travisBickle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1649.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1649</wfw:commentRss><description>I have a dropdown list which have the values hardcoded.&lt;br /&gt;&lt;br /&gt;When i submit to the webservice i can get the selected value of the dropdown:&lt;br /&gt;&lt;br /&gt;this.thisXDocument.DOM.selectSingleNode("//my:cmbRecommendation").text;&lt;br /&gt;&lt;br /&gt;However, when i bind the dropdown with the database values returned from the webservice the above becomes blank.&lt;br /&gt;&lt;br /&gt;Any ideas?</description></item></channel></rss>