Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Page Numbering in Smart forms

Former Member
0 Kudos

Hi all,

I need some help in page numbering of smartforms.

I have 3 pages created in my smartform.First Page occurs only once.

The second and 3 rd pagecan occur multiple times.How do I initialize and increament the page number in this case?For example : there are 7 pages ( 1st page :1 no., 2nd page: 4 no. and 3 rd page: 2no.s)

The second page numbering has to start from 1 and 3rd page numbering should again start from 1.

Helpful answeres will be rewarded for sure.

Thanks In Advance,

sandeep

3 REPLIES 3

Former Member
0 Kudos

Hi,

in the smartform do the following.


1. take three variables in global definition and set there default value '0'.
2. use one variable in each page.
3. in the three pages before the point where u print the page no. add a code to increment the variables by 1.
4. Display the variables as page no...

i think this will solve ur problem......

Former Member
0 Kudos

Before the starting of the 2nd page of the smartform you can clear the &SFSY-PAGE& and then you can set the page number. by counting using a variable.

Regards,

Midhun Abraham

Former Member
0 Kudos

You can code this inside the smart form by adding program lines