filtering extensible section based on a dropdown - InfoPath Dev
in

InfoPath Dev

filtering extensible section based on a dropdown

Last post 02-18-2007 01:21 AM by Lorenzo. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-05-2007 03:22 PM

    • Lorenzo
    • Not Ranked
    • Joined on 01-22-2007
    • Italy
    • Posts 9

    filtering extensible section based on a dropdown

    I am creating a form connected to a SQL Database.
    I would like to filter rows according to the selected item in a drop-down list.
    For example, by selecting the company name, i would like to see its address and contact name.

    Right now i managed to retrieve the data for individual fields by applying a rule on the dropdown that modifies the field's values. But the database being quite large i would like to be able to do this in one move. I am thinking to use sections and have the dropdown modify all the fields of the section in one rule.
    But i cannot find a way to filter the list of sections according to the dropdown. Can anyone show me how to do this?

    Thx
  • 02-06-2007 10:21 AM In reply to

    Re: filtering extensible section based on a dropdown

    Hi Lorenzco,

    It seems like you've done what I described in this HowTo:http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85 but you need an easier way. Makes sense. Try this:

    Assuming your schema is something like this:

    RepeatingGroup
    --Name
    --Number
    --Department
    --Etc.

    Drag and drop the RepeatingGroup node (from the database) onto the view as a repeating section. Double-click the repeating section on the view, go to Display tab, and then click Conditional Formatting. Add this formula:

    CompanyName | is not equal to | CompanyNameDropDown -> Hide this control

    After this is done you can place all the fields that you want to show and it will show/hide the entire section depending on the dropdown value.

    Hope this helps!
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 02-18-2007 01:21 AM In reply to

    • Lorenzo
    • Not Ranked
    • Joined on 01-22-2007
    • Italy
    • Posts 9

    Re: filtering extensible section based on a dropdown

    Thanks
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.