Binding infopath dropdown control to a datatable(DataSet) - InfoPath Dev
in

InfoPath Dev

Binding infopath dropdown control to a datatable(DataSet)

Last post 01-04-2011 08:08 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-30-2010 03:53 AM

    • Pranay
    • Not Ranked
    • Joined on 12-27-2010
    • Posts 3

    Binding infopath dropdown control to a datatable(DataSet)

    I need a working C# code where I can bind infopath dropdown control to a datatable...

     I have some enters like AAA, BBB, CCC .....in a datatable that I have retreived from a sharepoint groups.

     I would like to populate the same values into the Dropdown control once the infopath form is loaded

    Let me know if you need any further details

  • 01-04-2011 08:08 AM In reply to

    Re: Binding infopath dropdown control to a datatable(DataSet)

    Hi:

    Per the emails you sent me, it seems as if you have a few different data sources that would be used to provide options to the user in the drop down based on who the user is.

    One option would be to have a number of drop down controls on your form, each bound to the same field, and each using different data sources for their items. Then use conditional formatting to display the correct drop down to the user. Don't query all your data sources on load, just query the one you need for the correct drop down in open rules or other rules (whatever the logic is to determine the correct drop down to show).

    Another option would be to have an XML file as a secondary data connection, with no values in it, then using qRules or code, copy the correct items in from the correct data source.

    Hilary Stoupa

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