cancel
Showing results for 
Search instead for 
Did you mean: 

smart form page number display format problem

Former Member
0 Kudos

I am creating a smartform in which the current page & total NO of pages has to be printed on the page .so I created a text element under my main window.

page 1

window ( main window )

TEXT ELEMENT for page

loop

Text elemnt for data

But the page display is comming on one page only in the first page. I even tried with keeping the text element (for page) inside the loop. in this case it is giving me * for the total number of pages.

Can anyone tell me the reson for this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mohamed

in this case you have to create a second window in the same page itself and give the type as L(Final Window).In this window create a text element and write &SFSY-PAGE& of &SFSY-FORMPAGES&.

SFSY-PAGE will give the current no. of page

SFSY-FORMPAGES will give the total number of pages

So it will come like this.

page 1

window ( main window )

TEXT ELEMENT for page

loop

Text elemnt for data.

SECONDARY WINDOW(TYPE L).

TEXTELEMENT (&SFSY-PAGE& of &SFSY-FORMPAGES& )

Try this

This will defnitely solve your problem

Regards

Hareesh Menon

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi guru's,

Thanks for everyone!!!

Former Member
0 Kudos

hi,

in smart forms we have system fields wich can give pageno & total nuber of pages u can use those standard fields for solve ur problem by just drag & drop.

on menu press the button field list.

sytemfields -


> sysf -


> page, formpages.

or add below fields.

sysf-page- for page no.

sysf-formpages for totl number of pages.

regds:

rajesh.k

shishupalreddy
Active Contributor
0 Kudos

Hello ,

Use the system symbols as follows.

Page &Sfsy-PAGE&/&SFSY-FORMPAGES(3CZ)& to avoid * SYMBOL WITHIN THE output.

Regards

Former Member
0 Kudos

Hi Mohamed,

Create the window and window type should be final window .

In that create the text node and text : PAGE &SFSY-PAGE OF &SFSY-FORMPAGES

Regards,

Sravanthi