Skip to Content
author's profile photo Former Member
Former Member

displaying Sub-total per page using Template in smartforms

good day experts!

i have a question regarding getting and displaying subtotal per page...

Im using template instead of tables. i know in tables in calculation tab you can define on how to get

the total and subtotal.... But in template i have no idea...

please help on how can i achieve in getting the subtotal per page when using template...

thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2009 at 06:51 AM


    If you are using Template, then only way would be to calculate explicitly in a code just before the footer line or if you in a loop just after you loop try to add the field into a local variable and print that and clear that variable just after you print your footer(after the footer line)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      yes currently im working under loop...

      this is the exact flow of my SF...

      1.main window

      2.Loop condition

      3.Alternative condition [for header display]

      True: Template Top header


      4.Template Data -

      > Name, Monthly amortization, HDMF number

      5.Alternative condition [for Footer]

      True: Template footer -

      > subtotal display per page


      How can i exactly get the sub total per page because i define each page will contain

      39 entries... I have a total of 78 entries in my itab so i have 2 pages... but when i try to

      get the subtotal i getting the total of my 78 entries....

      please help

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.