Skip to Content
avatar image
Former Member

Print text on last but one page of SmartForms

Hello everyone,

Here I have a very specific requirement in SmartForms which I am not able to do even after trying a lot of options.

I want to print Items of PO in Main Window and I am printing total on a different window which should be printed at end of all Items. Again this does not mean total is printed on last page, as the last page has Conditions which is default with every PO.

So the requirement is to find out the last but one page at runtime and print the total.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

11 Answers

  • avatar image
    Former Member
    Sep 16, 2008 at 05:52 AM

    hi

    increase the size of main window or text area whatever u r using.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Priya,

      I think Po conditons comes under one page,

      So Create one window after main window, Place the varaibles for totals in the window . Give condition for that window as SFSY-PAGE = SFSY-FORMPAGES - 1 .

      Regards

      Jana

  • avatar image
    Former Member
    Sep 16, 2008 at 06:53 AM

    If you r using table in footer you can print the totals

    but thing is you have remove the tick

    double click on footer node there you will find the at page break there you need to remove the tick

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 06:55 AM

    Hi Priya,

    You have to print totals in separate page, is it correct?

    Regards

    jana

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Priya,

      Please Copy paste below code in Conditions tab of separate window , which is used for print totals.

      SFSY-PAGE = SFSY-FORMPAGES - 1

      Regards

      Jana

  • avatar image
    Former Member
    Sep 16, 2008 at 07:01 AM

    Hi priya,

    In main window after the table--> create the text node total amount.In global defintions declare the variable.

    The total will be displayed on the last page as per your requirement.

    Regards,

    sravanthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 07:32 AM

    Hi priya.

    Create two pages

    page 1 : main window >after table >text >command netxpage >total amt window.

    page 2 : secondary window-->text(conditions)

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 07:36 AM

    Hii..

    As You told that you are printing total PO items in different window. Try keeping with condition end of Main Window..

    I think this could be done.

    Regards,

    SG

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 08:00 AM

    hi,

    write total in footer of table.

    also uncheck the box 'At page break'. in footer.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sravanthi,

      could you please tell me in detail where to insert total window in first page.Whether below the command or main window.

      what are the conditions to be used in page 2.?

      Thanks.

  • avatar image
    Former Member
    Sep 16, 2008 at 08:32 AM

    Hi priya.

    In page 1 : After the main window create the text node

    total amount : &w_sum&.

    Declare this variable in global definition.

    After the text node create the command node-->general attributes go to page i.e page 2.after that place the total mount window.

    In page 2: for window-->condition only on page (page 2) create the text node for terms and conditions .

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Priya,

      Even I faced the same problem while creating invoice.

      Soln:

      declare a variable "g_counter" at global definition tab with data type "I'.

      In the main window just after your table and before the command line which you have used, create a program line and give input and output parameters as "g_counter"

      In the body of program line just write "g_counter = g_counter + 1".

      Make sure your total window is placed after the main window in sequence.

      Than in the total window you can put condition as "g_counter = 1".

      I am sure this issue will be reolved.

      Regards,

      Vinit

  • avatar image
    Former Member
    Sep 16, 2008 at 10:34 AM

    Hi priya,

    Create the text node before the total window as i explained earlier because i worked with your scenario data is getting printed.

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 11:06 AM

    define a field in the global definition. after the loop of all the items is finished in the main window set the global field to a specific value.

    the window with the totals must be conditioned to be activated only when this field has the proper value.

    Best Regards

    Guido

    Add comment
    10|10000 characters needed characters exceeded