How to refresh DropdownList in InfoPath 2010 - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How to refresh DropdownList in InfoPath 2010

Last post 02-15-2016 03:19 AM by SazWylde. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-25-2014 08:49 AM

    • ereyes
    • Not Ranked
    • Joined on 08-25-2014
    • Posts 2

    How to refresh DropdownList in InfoPath 2010

    I'm using cascading dropdown list and I want to refresh each dropdown in the on change event For example: I have two dropdown list, in the first one I have the following options A,B,C in the second one I have D,E,F if I select in the first DropDown option A I want to refresh the second one and so on with each DropDown. For now I put an empty string like this "" on change event but that's not the proper form. On the other, hand how can I create an autopostback when I change values in one of the dropdown list, I mean a "refresh" when I upload the form to SharePoint. The idea is when the form is uploaded on the web I want to make another refresh when I change a value in one of the dropdownlist. Im' Coding with C# on Visual Studio For Applications
  • 08-25-2014 09:10 AM In reply to

    Re: How to refresh DropdownList in InfoPath 2010

    You are on the right track.  If the values in the second list are a resultant list based on the first dropdown list then you have to blank the field and requery the data to get the correct  values.  If you only requery the data you will still have one value in the list showing that is from the original query.
  • 08-25-2014 09:18 AM In reply to

    • ereyes
    • Not Ranked
    • Joined on 08-25-2014
    • Posts 2

    Re: How to refresh DropdownList in InfoPath 2010

    How can I requery the data. I'm using a DataBase from microsoft sql server and in the each dropdownlist on change event contain a paramater that I passed to another dropdownlist to charge the Data. How Can I Requery??
  • 08-25-2014 02:20 PM In reply to

    Re: How to refresh DropdownList in InfoPath 2010

    You need to reexecute the query in your code.   If you need additional help please post the code so we can take a look. 
  • 02-15-2016 03:19 AM In reply to

    Re: How to refresh DropdownList in InfoPath 2010

    So do we need to develop some code in order to achieve this? How can I blank the field when the query is different?
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.