in

InfoPath Dev

using XPath to trigger a change in values (interactions between secondary data source and Main)

Last post 05-23-2008 05:45 PM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-22-2008 01:25 PM

    • Patrick
    • Top 100 Contributor
      Male
    • Joined on 11-04-2007
    • Texas
    • Posts 51

    using XPath to trigger a change in values (interactions between secondary data source and Main)

     Hi,

    I have a secondary data source that I get from a web service.  I based my Main data source off of an xml schema that I created.

    I have a secondary data source with a repeating table with multiple columns, one with a text box with an ID, and other columns (one of which is a name).

    I have a main data source with a repeating table with 2 columns; one has an ID number in a drop down which is populated from the secondary data source.  The other column has a blank text box.  I would like the user to select an ID from the drop down and based on that, have the text box populate with the corresponding name from the secondary data source repeating table.

    Main Data Source Repeating Table 

    I used this formula in a rule (set within the drop down) to "Set a Field's Value"  (the text box's value).  This is the formula: (i am not too experienced with XPath)

    VendorName[VendorCircuitQuoteId = current()]

     
    I don't know if that's enough info, but any help would be great.  thanks
     

    -Patrick
  • 05-23-2008 05:45 PM In reply to

    Re: using XPath to trigger a change in values (interactions between secondary data source and Main)

    Hey Patrick.

     The current function must reference a repeating node.

    You should be able to find some examples here of it in use by searching.

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