Skip to Content
avatar image
Former Member

Call smartform to smartform

Hi @ll,

I`d like to add an attachment to the standard invoice form. Therefore I`ve created a second smartform. As suggested at this

[forum entry|calling-another-smartform-from-a-smartform; I call the second form on initialization of the first smartform.

This procedure works fine - the problem is that the pages of the second form are printed first.

Is there a possibility to call the second form at the end of the first form?

Regards,

Flo

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 04, 2009 at 04:22 PM

    Hi florian,

    In dont think that is possible,

    because you are calling the second smartform before the process of the 1st ends...

    so...this happens...

    process 1st smart -> call 2nd smart ->process 2nd ->show 2nd -> ends 1st -> show 1st.

    just a question: Why you need to do this?

    Regards, SebastiĆ”

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 04, 2009 at 01:59 PM

    Hi,

    If possible do it this way

    call 1st smart form in second smart form initialization

    Regards

    Krishna

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 04, 2009 at 02:09 PM

    Hi

    Yes of course, it depends on how u call the 2 smartforms:

    U need to call the smartform of the invoice and then the new one you've just created: so u need to check the logic of your program.

    Max

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 04, 2009 at 02:53 PM

    Hi,

    After the main window create node program lines and in that call the next smartform.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 04, 2009 at 03:50 PM

    If you need to print the attachment on all the invoice forms, add a command node to the first form at the end of main window, give a new page break and include the texts which are in the second form i.e. attachment, thereby you dont need to create a second form at all. And the attachment would be printed at the end.

    Add comment
    10|10000 characters needed characters exceeded