Skip to Content

About page numbers in smartform

Hi ,

We print picking list in smart form. Every Picking number will have many items, so we have to divide them into several pages, and show the page number like format "current page/total pages", since we will

print many picking list at one time ,and every picking number has it's own "total pages" , so we can not use system variable to identify the pages, we have to count it .

The problem is: in the item lines, there are description fields with variable length, some items may be printed in one line, some may be printed in two lines, the descritpion fields contain chinese characters or/and english characters, it's quite difficult to know if the description will be printed in several lines or not. so it's difficult to count the total pages.

Anyone can help about this? thanks very much!

Regards

Pole

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 01:14 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 02:11 PM

    To print the pages create a window of type Final Window, Final window is executed at the last so here when u use sfsy-formpages it will give u the exact number of total pages.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      >

      > Hi,

      >

      > Create one window of type Secondary window. in that u can specify

      > SFSY-PAGE / SFSY-FORMPAGES.

      >

      > Here SFSY-PAGE-------Current Page

      > SFSY-FORMPAGES------Total no.of Pages

      Read the Question Properly before you answer it.

      For every new picking number, the page numbers and total page numbers need to change.

      To the OP(Original Poster), Ramakrishna's answer is what you should look into.

      Vishwa.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 04:56 AM

    Hi,

    Use sort event for the picking number in the Data tab of the table node and use program lines to add to a counter ( local variable ) inside the table node and then clear once for each new picking number.

    And display it wherever it is to be displayed.

    Regards,

    Ram

    Edited by: Ramakrishna Peri on Dec 22, 2008 10:28 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 06:00 AM

    hi ,

    i came across the same problem ...

    i assumed that items will not be more than 100 ....

    my one page contains almost 50 items ...

    so i heard coded like if number of items is more than 50 then in page1 print 1 of 2 and in second page 2 of 2 .

    if items are less than 50 only one page and print 1 of 1 ...

    decide number of lines u can print in one page .... i think then u can do some thng ...

    hope it helps 😊

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Since the items are dynamic thats why i suggested u to use final window and print page numbers in that as final window is executed in last so the smartform knows that how many pages will be needed thus populating the sfsy-formpages with total number of pages.

      кu03B1ятu03B9к

  • Posted on Dec 23, 2008 at 12:32 AM

    Hi,

    Thanks for all your reply, we will try.

    Regards,

    Pole

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.