on 08-20-2007 10:40 PM
Hi ,
My requirement is to print 'Continue...' If the current page # is less than the total number of form pages and print '...Last Page' If the current page # is equal to the total number of form pages. I used condition node to check SFSY-PAGE < SFSY-FORMPAGES, if this true printing 'Continue...', If not then print '...Last page'. But endup printing always '...Last page'. I debuged though the code and surprised to see that the SFSY-PAGE and SFSY-FORMPAGES have always same value. They are getting updated same time. So at the time I do the check they are same, so always printing the text 'Last page...'
In my Page > General Attributes > Page counter, I selected formt 1,2,3.. and Mode as Increase counter.
Any one have a clue of this ? Please let me know how to solve it.
Thank you,
Surya
Hi Surya,
try this....
create a window of type 'final window' and place the same code used by you in this window. It may work as final window will be processed after all the remaining windows are processed.
regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Surya, i understand your problem, to get the output in your desired format follow my suggestion.
instead of using command node to check the SFSY-PAGE < SFSY-FORMPAGES use the ALTERNATIVE LOOP from flow logic, in that give the comparison fields SFSY-PAGE and SFSY-FORMPAGES. and create program line in the TRUE node and FALSE node write continue and last page in the program line.
Hope it will work. reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
I did not use command node to check the SFSY-PAGE < SFSY-FORMPAGES. I used Alternative, i.e condition node.
I did not understand your answer. What is ALTERNATIVE LOOP from flow logic ? I see two nodes ALTERNATIVE and LOOP. Also you mentioned to create program line in the TRUE node and FALSE note and wite 'Continue' and 'Last page'. You mean to use WRITE statement ?
Please let me know if you have any questions.
Thank you,
Surya.
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.