Help - Drivin me Nuts - InfoPath Dev
in

InfoPath Dev

Help - Drivin me Nuts

Last post 03-24-2007 07:51 AM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-23-2007 11:36 PM

    Help - Drivin me Nuts

    Hi Guys, I have an issue that I cannot figure out. I am trying to query a secondary data source to populate a value in a text box. Here is the deal. Iam able to get a value to display in an expression box, but I cannot get any value to show up in a text box??? Am I crazy here? Here is the query that is running. Any help would be appriciated, I dont know what else to try. Its probably someting simple?

    Joel

    xdXDocument:GetDOM("openingProductInfo")/dfs:myFields/dfs:dataFields/d:openingProductInfo/@NumberofShells[../@Shell_Type = current()/my:shellType and ../@Size = current()/my:shellSize and ../@Sub_Type = current()/my:shellSubType]
  • 03-24-2007 07:51 AM In reply to

    Hey Joel,

    It is possible for the XPath to display values will be different for an Expression box and a text box due to how they are represented in the underlying XSL. The most likely error is that the result of current() is different for the two controls.

    To help you debug the problem, you can use this XPath to determine where current() points to:

    local-name( current() )

    Then, work your way up, making sure current()/my:shellSize returns the right thing and so on.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.