Help with current(), drop downs, and text box - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Help with current(), drop downs, and text box

Last post 10-22-2005 09:26 PM by faivre. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-21-2005 03:55 PM

    Help with current(), drop downs, and text box

    Hello,

    I trying to do the following:

    I have a repeating table. Each row has a button. When that button is clicked I want to populate a text box with the value in a drop down list that is in the chosen row. The drop down list is populated from a secondary database source. Here is the rule I have for the button:

    xdXDocument:GetDOM("VesselDesc")/dfs:myFields/dfs:dataFields/d:VesselDesc/@Name[../@VesselDescID = current()/../@VesselDescID]

    Which isn't working. If I have the following two actions in the rule, where I first set a field to the current VesselDescID:

    current()/@VesselDescID

    then use this field to get the value in the drop down list of the current row:

    xdXDocument:GetDOM("VesselDesc")/dfs:myFields/dfs:dataFields/d:VesselDesc/@Name[../@VesselDescID = xdXDocument:get-DOM()/dfs:myFields/my:VesselDesc.VesselDescID]

    it works just fine. It seems that I should be able to combine these two action into one.

    Thanks in advance,

    Brian Faivre
  • 10-22-2005 09:26 PM In reply to

    Re: Help with current(), drop downs, and text box

    I removed the rules from the button and added:

    xdXDocument:GetDOM("VesselDesc")/dfs:myFields/dfs:dataFields/d:VesselDesc/@Name[../@VesselDescID = current()/../@VesselDescID]

    to the text box value property and it works fine.

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