adding fields together with code - InfoPath Dev
in

InfoPath Dev

adding fields together with code

Last post 06-13-2006 02:15 PM by merlincam. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-13-2006 12:48 PM

    adding fields together with code

    I am attempting to add fields for a subtotal, which has been working on other parts of the form. I have added a new repeating table in, and the xpath function for counting number of nodes works fine if i use it in a formula box on a rules tab attached to something random on the page, but when I try to use the same thing in my js code, it shows 0 no matter how many nodes there are.

    count(../pr:order/my:trucost/my:trucostorder/my:tcunitprice)

    Like I said, this works fine from inside the form if i attach the function to a text box or something, but when I try to do the same thing in my js code, it returns 0 every time. Is there something different with the xpath when using js as opposed to insde infopath?

    Thanks,
    Craig
  • 06-13-2006 02:15 PM In reply to

    Re: adding fields together with code

    this has been resolved, i just needed to use absolute reference in the xpath
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.