cancel
Showing results for 
Search instead for 
Did you mean: 

Don't know how to calcualte the current page in smartform for second layout

Former Member
0 Kudos

Hi All ,

Iam creating an smart form which contains two layout in a single form. I need the page number to be displayed as followes.

1st layout : 1 of 2

2 of 2.

in 2nd layout 1 of 2.

2 0f 2.

I dont have any issues in printing total number of pages. i dont know how to calculate the current page for the 2nd layout. <<text removed>>

Edited by: Matt on Jun 25, 2009 5:09 PM - Removed ALL CAPITALS from subject

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Please don't post in all caps. It makes the subject more difficult to read and lessens the chance that people will read and therefore respond to it.

Rob

Former Member
0 Kudos

Hi,

Create a New window of Type 'Final Window' and Position it in the layout where u want to display the page numbers.

Now, create a text element in the window and create the text like below in the text element.

P1 Page &SFSY-PAGE& of &SFSY-FORMPAGES(3CZ)&

&SFSY-PAGE& - Current Page No.

&SFSY-FORMPAGES(3CZ)& - Total No of Pages.

Note: dont forget to create the window type as 'Final Window', otherwise it will show ssome junk...

Hope it helps!!

Rgds,

Pavan