Skip to Content

End of sort - event

I am developing a new form using smartforms.

In the main window I added a table with different line types. One block shows customer orders. Within the customer the orders get printed. After each order the subtotals of the order and at the end of the customer the totals will be shown.

Everything is working fine so far. I grouped the lines within a folder and set the page protection marker.

But unfortunately the "End of sort" event can not be included into this folder, therefore it can happen, that the subtotals or totals get printed on the next page.

How can I tell the form, that the event should print the totals in the same block as the line items, and if necessary to move the block completely onto the next page?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2008 at 09:25 AM

    Hi,

    1.Call that event in protect and end protect.

    2.That solves u r problem

    Regards,

    Shiva.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rainer Biefel

      Hi,

      Right click on the window you will get a option to create a folder.

      By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.

      Create a folder and create all your text elements for a row inside that folder.

      Now, switch on the page protection at the folder level in the attributes.

      Regards,

      Raj.

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2008 at 12:21 PM

    Rainer,

    youre probably right there doesnt seem to be a way to page protect this along with the line items

    Can you do this?... capture the value in the event and dispaly it in the footer of the table

    You can page protect the footer having it at every page break

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Vikranth Reddy

      I need to be able to detect when a page break has occured in Smartforms as well. I know that sy-pagebreak is no longer available in ECC 6.0 but would like to try to understan how you used INTSFSY-pagebreak to determine that a page break has occured?

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2008 at 12:50 PM

    Hello,

    Please do make an note that you cannot page protect by using an folder option or any other option in the table main area, only page protection in the tabel shoould be given in the header and footer.

    Now your requirement is to have an page protection at the end of the event.

    Create an line type after the event and this line type should be uncheck marked No page protection(this is in the table attribute where you create line type).

    Under this line type create an text element and pass all the footer values into one text element with formatting.

    This will suffice your requirement.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 12:07 PM

    Hi,

    Create a text element in that select output options you can find page protection select that checkbox . Count manually the total no of lines that are in the folder and end-of-event. In that text element give that many no of empty lines.

    Thanks,

    NN.

    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.