Avatar

Level 1

Hello!

I have a similar situation and I don't know how to handle it.

There is a field in the master page which I want to appear on bottom of each page.

In the normal page I have a repeating Subform which can flow on multiple pages and it contains multiple fields.

Scope: In the field from the master page I want to display the last value of a field from the current page.

Example:

Page1 has only one item 0010 -> field from master page on the first page = 0010

Page2 has two items 0020 and 0030 -> field from master page on the second page = 0030

Page3 has three items 0040, 0050 and 0060 -> field from master page on the third page = 0060

...and so on

What I've tried without success:

1.Created a global variable in interface and a text field on the master page with binding set as Use Global Data

2. In the event indexChange of the repeating Subform I have the following JavaScript:

     $record.<name of the global text field>.value = Subform.Field.rawValue

Global field assignment works fine, but it contains the last value from the binded table on each page. From the above example: 0060 on each page.