AnsweredAssumed Answered

Get page count in FileMaker Server help!

Question asked by FMCostaRica on May 26, 2018
Latest reply on May 26, 2018 by FMCostaRica

Hi all,

 

I have a scrip that when run locally it gives me the page count of a document I am about to turn into a PDF, this page count is important as it displays at the bottom of the page "Page 1 of 3" and the person reading the document can know there are more pages and can either scroll etc.

 

Locally this is what I did:

 

Enter Preview Mode [ Pause: Off ]

Go to Record/Request/Page [ Last ]

Set Variable [ $$pageCount ; Value: Get ( PageNumber ) ]

Enter Browse Mode [ Pause: Off ]

 

$$pageCount gave me that number I need it, but now I need to run this script on server and the script step Enter Preview Mode is not compatible, any workarounds will be greatly appreciated.

 

Pura vida!

Outcomes