Binding a DropDown At runtime - InfoPath Dev
in

InfoPath Dev

Binding a DropDown At runtime

Last post 02-15-2010 04:49 AM by Qazi Anis. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-15-2010 02:26 AM

    Binding a DropDown At runtime

    Hi All,

    I had a scenario in which the values in a dropdown depended upon values selected in another dropdown above it.

    I have bound the dropdown with a XML.and also used the filter mechanism thus I achieved this thing.

    I also need to default the 2nd dropdown to certain value which gets bind with the dropdown after the filtering and i am stuck in this problem.

    I need help on this.

     Thanks

    Himanshu

  • 02-15-2010 03:47 AM In reply to

    Re: Binding a DropDown At runtime

    why dont you just use a rule on the first drop down to set the value of second drop down to what ever you want, that should be the easy way for you

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 02-15-2010 04:03 AM In reply to

    Re: Binding a DropDown At runtime

    Hi Qazi,

    Thanks for the reply. 

     I have alraedy tried the same thing but it's not working probably because the value in the 2nd drop down depends on the 1st dropdown.

    Do u have any other suggestions.

    Thanks

    HImanshu

  • 02-15-2010 04:28 AM In reply to

    Re: Binding a DropDown At runtime

    Hi Himanshu,

    Just wanted to know,if ur infopath form is browser compatible or its just an infopath form, and if your cascading drop down boxes are a part of repeating table or repeating section. If your answer to first question is Browser compatible and second answer is no,then i've done this before by writing a piece of code,and this code is reusable.Let me know if you want the code..And if there is no problem for you using the code in an infopath form.

    Regards

    Vishal Srivastava

    Vishal Srivastava
    Senior Software Engineer
    SDG Software Pvt Ltd
  • 02-15-2010 04:49 AM In reply to

    Re: Binding a DropDown At runtime

    there should be some logic that should decide what should be the default value of the dropdown 2 when dropdown 1 changes, so try to implement that logic using rules and set the value of the drop down 2(note: rule needs to be put on drop down 1)

    if you are not able to do it, attach the template and let me have a look at it

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.