Expand my Community achievements bar.

SOLVED

Subtraction across different pages help please

Avatar

Former Community Member

Hi.

I am new to this forum and hope someone can help.

I have created a form in Livecycle ES2 and have many formcalc sums working fine.

My problem is my subtraction calculation gives me a minus total equal to one of the cells it is suppose to be subtracting from.

For example I have

A is the total of 5 cells = $250,000

+

B = total being 1 cell * 75% of another = $100,000

C = A + B = $350,000

Then

D = Total of 7 cells = $100,000

(All formulas up to here are working perfectly)

E is supposed to equal C - D

My total is always the total of cell D as a minus e.g. -$100,000

C is on page 1 and D is on page 2

I have in my xfa the page numbers and the field names correct and get no errors when previewing, it just gives me the incorrect total.

xfa.resolveNode("form1.page1.GROSSCOVERREQUIRED") - xfa.resolveNode("form1.page2.TOTALRELISABLEASSETS")

Can you help me out with a formcalc formula to get E to = C - D please.

Any help would be much appreciated

Thanks

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Your formulas look right .....can you send the form to LiveCycle8@gmail.com and I will have a look. Please include a description on how to reproduce the issue.

Paul

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Your formulas look right .....can you send the form to LiveCycle8@gmail.com and I will have a look. Please include a description on how to reproduce the issue.

Paul

Avatar

Former Community Member

Hi Paul,

Just emailed it to that address.

Thanks

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----