Upon switch view, the drop-downs (populated by data conn) loses their display value - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Upon switch view, the drop-downs (populated by data conn) loses their display value

Last post 08-27-2007 12:59 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-23-2007 08:25 AM

    Upon switch view, the drop-downs (populated by data conn) loses their display value

    I’ve four drop-down lists:  A, B, C, D

     

    "A"and "B" are populated from a 2ndary data connection (via WebService to Database). 

    Where as,     Select a value in "A"  -----> "C" drop-down gets filtered values (via 2ndary data conn which is Webservice which grabs data from DB).

    Likewise,        Select a value in "C" ----> "D" drop-down gets filtered values (via 2ndary data conn which is Webservice which grabs data from DB)

                                                              

    So, when I save the form then it switches the view to read-only, at this time all the selections show up fine.  But if I close the form and re-open it then

    "A"and "B" keep their drop-downs but "C" and "D" only show their corresponding database pids instead of the actual display values.

     

    Do you have any solution for this kind of behavior?  The observation is that anything drop-donw that is filtered acts weirdly.

     

    BTW, this is browser enabled form.

     

    Filed under: ,
  • 08-27-2007 12:59 PM In reply to

    Re: Upon switch view, the drop-downs (populated by data conn) loses their display value

    Sounds like the problem is that your datasource is not being queried onload, but rather on value change in the dropdowns. Thus when you first load, the display names are not available, and the stored values are instead displayed.

    If you MUST query on change instead of only one time onload, then you need to have 2 fields instead of 1. One field stores the queried display name and the other the queried value. The drop-down is tied to the display names... thus when you first load, the display names will be shown instead of the values.

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