on 03-16-2007 5:36 PM
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...???
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.