cancel
Showing results for 
Search instead for 
Did you mean: 

page numbers in smart forms..!!!

Former Member
0 Kudos

hello gurus..

in my smartform for puchase order i want to print page nos such tht on page 1 it shud print continued on pg.2, on pg 2 it shud print continued on pg.3 and on pg.3(considering it is last page) it shud not print anythng.

for this purpose i hv written in conditions as.,

sfsy-page ne sfsy-formpages.

now problm is tht whn i see in debug my formpages has same no as my page insted of hvng total no of pages.

can any one suggest me a way...???

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hiii...

&nextpage& is 0 for last page.

U just create a text element for this and copy it into all the pages.. and in that write text <b>"continued on page"</b> , drag and drop the parameter <b>&nextpage&</b> here. Now for this text element in the <b>CONDITIONS</b> tab parameter is &nextpage&, and click on the space where u can put the condition ,..then u will get a popup box , in that select '#' not equal to.. and in the value field give 0...

Here is the condition for that (in scripts )..

<b>/:if &nextpage& ne 0.

continued on page &nextpage&

/:endif.</b>

Hope it helps u...

sai ramesh

Former Member
0 Kudos

@ramesh

where is this field &nextpage& specified???

i checked it i did not find it into sfsy folder....

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Siddhesh

all you can do is take a variable named next_page in the global declaration with default value as 1.

now put this in program lines keeping next_page in input and output parameters.

next_page = next_page + 1.

now in the text under the conditions tab put a condition that next_page is less than sfsy-formpages.

hope this may help you.

Reward Point sif helpful

Regards

Zarina

Former Member
0 Kudos

sry

not next_page put <b>sfsy-pages</b> ne sfsy-formpages.

Former Member
0 Kudos

sry

not next_page put <b>sfsy-page</b> ne sfsy-formpages.

Former Member
0 Kudos

Define a Text in Main window... in that write: 'To be continued on: &SFSY-PAGE&

GO to conditions of the TEXT... there specify SFSY-PAGE NE SFSY-FORMPAGES