Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Add instance problem with calculation

Avatar

Level 2

I have a form where I have a total calculation field. When I add an instance

in the form everything below that instance is no longer calculated. Ple

ase help.

K

1 Accepted Solution

Avatar

Correct answer by
Level 10

You need a .rawValue ,,,like this:

xfa.resolveNode("#subform[1].setup-tr2").rawValue

+xfa.resolveNode("#subform[1].mid-tr2").rawValue+ etc....

View solution in original post

0 Replies

Avatar

Level 10

what expression did you use on the calculation? Which version of Reader did you target for the form?

Paul

Avatar

Level 2

xfa.resolveNode("#subform[1].setup-tr2")

+xfa.resolveNode("#subform[1].mid-tr2")+ it goes on from here.

Its targeted for reader 9.0 or later.

Avatar

Level 10

You will need a rawValue on the end of each of those expressions ....I am assuming setup-tr2 is the fieldname.

If that does not work send the form and a description of the issue to LiveCycle8@gmail.com and I will have a look.

Paul

Avatar

Level 2

Yes setup-tr2 is a field name. S

o my expression should look like

xfa.resolveNode("#subform[1].setup-tr2")rawValue

+xfa.resolveNode("#subform[1].mid-tr2")rawValue+ ?

Avatar

Correct answer by
Level 10

You need a .rawValue ,,,like this:

xfa.resolveNode("#subform[1].setup-tr2").rawValue

+xfa.resolveNode("#subform[1].mid-tr2").rawValue+ etc....

Avatar

Level 2

Opps, I forgot the .

I did try this and it worked to keep all calculation in my total, but now when I add instance, I get an error message. I did email you a sample of my form with an explaination of my issue, before I added the .rawValue.

Thank you. K