Dear All,
could you please help to solve following problem:
I have a LiveCycle dynamic PDF form, which has a repeatable page, let's call it "dynamic", and on that page, there's "numeric1" field for entering the number. And also there's another "numeric2" field, which calculates the Average of "numeric1" on all pages - Avg(dynamic[*].numeric1). Pages are added by instanceManager.addInstance(1) command.
So here is my problem: when I make several pages, and fill out the numeric1 field, I get equal average numeric2 value on ALL pages. And I need to have those averages, which were actual for page1, page2, page(n).
My idea is that I need to make average formula working in cycle where i = first page number and n is current page number. The cycle should look like that:
for i=1 to n
Avg(dynamic[*].numeric1)
end
I know that code written above is very far away from syntax rules, so that's where I need the expert help. Could anyone please give me a right code (preffered in FormCalc) to achieve my goal.
I would be more than happy to hear other ideas, if you consider my approach as wrong.
Thanks for yor help!
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs