Problem with Dropdown List Box - InfoPath Dev
in

InfoPath Dev

Problem with Dropdown List Box

Last post 03-14-2005 11:44 AM by Shanthi Reddy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-13-2005 11:27 PM

    • opopan
    • Not Ranked
    • Joined on 03-14-2005
    • Posts 1

    Problem with Dropdown List Box

    I have two dropdown depend on each other but map different Data source. One is main_loan_type has map MainLoanType from Web Service and another is loan_type map LoanType. When I select main_loan_type, loan_type will filter follow main_loan_type.

    My solution, I use filter at loan_type (I did follow Example: Repeating Cascading Lists of Cascading Lists, v1.0), but it doesn't work.It doesn't know function current() and I don't know how it do.

    When I changed my solution to map directly , it still doesn't work.
    On the first row data of loan_type is right, but when add the second row data of loan_type is from the first row plus the second row.
    I don't know why it is correct on the first row.

    I really appreciate any help!


  • 03-14-2005 11:44 AM In reply to

    Re: Problem with Dropdown List Box

    Hello opopan,
    This is what i understand in your problem. You have a repeating table with two field lets say ab and bc, both of which are dropdowns in the view. ab gets data from drop1.xml which is probably of format
    <ABData>
    <a nm="a" val="1" />
    <a nm="b" val="2" /> and so on
    and bc is mapped to drop2.xml which is of format
    <BCData>
    <a val="1">
    <b nm="z" val="100" />
    <b nm="y" val="101" /> and so on
    to see the filtered data for field BC correctly for each row in the table you need to have a filter like this
    ../@val = current()/my:ab

    Hope this helps!

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