Skip to Content
author's profile photo
Former Member

Problem with &SFSY-PAGE& and &SFSY-FORMPAGES& in Smartforms

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 06:58 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 06:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded