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

Avatar

Avatar

JoschkaRick

Avatar

JoschkaRick

JoschkaRick

07-06-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

radzmar

MVP

Avatar

radzmar

MVP

radzmar
MVP

07-06-2018

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

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

Answers (2)

Answers (2)

Avatar

Avatar

whiteez31947737

Avatar

whiteez31947737

whiteez31947737

27-05-2019

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

Avatar

Avatar

JoschkaRick

Avatar

JoschkaRick

JoschkaRick

07-06-2018

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