Encontrei num post do blog do JOPX , este conjunto de recursos sobre InfoPath 2007. General resources
InfoPath 2007 resources General resources InfoPath General Overview InfoPath team Blog Designing Form
I am a newbie in infopath and I have surfed almost every article to get my dependent dropdowns working! Most of the sites ask us to refer this URL.. This is a great article.
I would like to add my comments for populating cascading dropdowns. You can also use repeating tables for this purpose. There is no need to call a webservice on change of each and every dropdown. Just write your logic in the codebehind and populate a repeating table onchange of a dropdown. Bind the dependent dropdown to this repeating table. Ensure to clear the reapeating table on next onchange event of your first dropdown!
-Bhavana Bhat
Hi Bhavana,
Thank you for your suggestion as this is certainly another option! One of the main reasons I used a web service in this manner is that the InfoPath form template (for this functionality) requires no code - as such, the form template does not need to be "Administrator" deployed.
Scott Heim
When designing Microsoft Office InfoPath form templates, filtering can be used to limit the options that are displayed to users in certain controls. This out-of-the-box functionality can be used in list boxes, drop-down list boxes, combo boxes, repeating
When designing Microsoft Office InfoPath form templates, filtering can be used to limit the options that are displayed to users in certain controls. However, if you are designing an Office InfoPath 2007 form template for a browser scenario, it should
One of our customers here asked us to develop a simple InfoPath form, including dependant dropdown functionality.
This is a great example, but what do you do if the controls are in a repeating table? The dependant control (SelectOrder) is "filtered" for every row in the repeating table based on the selected value of SelectCustomer in the current row.
Hi Crisch,
Are you referring to the behavior that when you click the SelectOrder box in an existing row that it only contains the values for the "newly added" row? If so, then correct - this would be expected behavior for this sample.
If you wanted to be able to "refresh" the list when you move to a previously created row, you could add a new column with a button to the repeating table with a Rule that sets the query field and then queries the connection. The only other option may be using managed code but I have not explored that option as I was attempting to show how to accomplish this without using code in the InfoPath form template.
Scott
Hi, I have to admit that this post is long overdue. In the last two weeks, I came across a lot of people
The InfoPath Team Blog has a great article on how to implement cascading dropdowns in InfoPath Forms
Using managed code, it is possible to set the dropdown values dynamically even in the repeating context. The above URL contains an article on how to do it with a sample.
Hello
You are the hero, i was trin to do that from three days without filters but ....
You solved the problem.
Thanks alot.