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

Get Pagenumber via FormCalc ( xfa.layout.page($) not working)

Avatar

Level 2

Hello everyone,

I'm trying to print the current page number on my master page using FormCalc.

The following command:

$.rawValue = xfa.layout.page($)

throws the error "Error - Different arguments in property or functional argument".

I only see the exception in English, so it's translated freely.

The layout documentation states that the call is correct:

Adobe LiveCycle ES4 * page

The form is a new, clean one, I'm using ES4.

Any ideas why it's not working?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Build an object reference to the target object using the Ref() method:

$ = xfa.layout.page(Ref($))

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Build an object reference to the target object using the Ref() method:

$ = xfa.layout.page(Ref($))

Avatar

Level 2

Thanks! It's working for Fields on the master page, which is enough :-).

Avatar

Level 1

how to make it in the content page.

I added the code in the content page but it displayed as page -1 instead of page 1.

no idea how the sign came up