Question

Cognizant Technology Solutions US Corp
US
Last activity: 13 Jan 2016 9:37 EST
Help with Declare Expression
Hi,
We have a declare expression to calculate the amounts of all pages in the page list.
The page structure is like following:
TopPage(1). SubPage(1).Amount
TopPage(1). SubPage(2).Amount
TopPage(1). SubPage(3).Amount
TopPage(2). SubPage(1).Amount
TopPage(2). SubPage(2).Amount
TopPage(2). SubPage(3).Amount
Our requirement is, when the inputs changed, the total amount on all sub pages should be calculated and set to TopPage property.
Ex: TopPage(1).TotalAmount = TopPage(1). SubPage(1).Amount + TopPage(1). SubPage(2).Amount + TopPage(1). SubPage(3).Amount
we have few issues in writing declare expression to get expected results.
Can someone help me with this?