2020 Dec 28 9:41 AM
Hello All,
I have created a smartform with 3 pages - first page contains bill-to ship-to address,logo and main window.
second page contains some signature templates and PO details.
Third page with terms and conditions.
My Issue - in the first page - main window contains data records from internal table which is placed at middle of the page and logo at bottom - if the data records are more than 20 it is going to next page BUT the thing is the starting from the middle of the second page(as my main window in first page is placed at the middle - it is starting from the middle of the second page )-and also logo should go to the next page as i have placed logo at the bottom of the main window- how to resolve this - to place the continues data to the second page it should start from the beggining of the page instead of middle of page.
Also in second page i have PO details which i placed in the Table(with internal table data) - which might flow to third page if the PO details are more.
and my Third and Last page should print the Terms and conditions.
Thanks in advance.
Hello All,
I have created a smartform with 3 pages - first page contains bill-to ship-to address,logo and main window.
second page contains some signature templates and PO details.
Third page with terms and conditions.
My Issue - in the first page - main window contains data records from internal table which is placed at middle of the page and logo at bottom - if the data records are more than 20 it is going to next page BUT the thing is the starting from the middle of the second page(as my main window in first page is placed at the middle - it is starting from the middle of the second page )-and also logo should go to the next page as i have placed logo at the bottom of the main window- how to resolve this - to place the continues data to the second page it should start from the beggining of the page instead of middle of page.
Also in second page i have PO details which i placed in the Table(with internal table data) - which might flow to third page if the PO details are more.
and my Third and Last page should print the Terms and conditions.
Thanks in advance.
2020 Dec 28 12:04 PM
Hi,
One can adjust the height and the position of the main window on each page separately - only the width must remain the same over all pages it's used on.
I'd set the Next Page for second page to itself, and branch to the Terms and conditions page using Go to New Page Command, after the details Table node in Main window.
The logo issue I didn't quite understand...
Cheers,
Janis
2020 Dec 28 1:54 PM
Thanks for your reply.
as per your suggestions I have changed accordingly - but it went to dump.
In Page 1 -> i have placed the table(which contains internal table entries) in main window with next page as same(first page) and after main window i have placed new page command as Page 2.
In Page 2 -> i have placed the same main window(copied from page 1) with table in the second page also but at different place with same width - (Am i wrong here??)
and another main window for PO details in the page 2 - set next page of page 2 as same(page 2) and after PO details main window i have placed a new page command as page 3.
in Page 3 -> i have again copied the PO details main window (copied from page 2) but at different place with same width( Am i wrong here??)
And for LOGO i need this to be printed after my PAGE 1 main window entries (this might go to next page also depend on the internal table entries) - what i did is i have clicked on checkbox Only after End of the Main Window for the LOGO window. BUT it is not printing at any page neither in page 1 (if page 1 have less entries ) or in Page 2(if page 1 have more entries in internal table).
Please suggest .Thanks.
2020 Dec 28 2:58 PM
zjbtstxml.txt@ravi.kumar183
There can be only one Main Window (with content, but lets leave that distinction aside for the time being) per smartfo..., all content nodes that need to flow over multiple pages go into Main window, - on the first page (that needs flowing content). So you do have one main window, copied into all the pages - have I understood it correctly? 🙂 What does the dump say?
Next page for the first page should be second page.
Next page for the second page is second page.
After the PO details table comes 'go to page 3' command, followed by 'terms and conditions' content?
"Only after End of the Main window" will not help with the secondary window - you'll need flag (a variable) to control output of that window. I'd put 'Program Lines' node before the 'go to page 3' node, where i'd set the flag, and inside logo window - another 'program lines' node that clears it. Then in the logo window Conditions tab you can check flag <> INITIAL.
cheers
Janis
Something like the Testform in attachment... 🙂
2020 Dec 28 1:58 PM
You should create a fourth page to define the page layout when the MAIN window is to be continued.
In the first page, define next page = fourth page.
In the fourth page, define a higher main window and define next page = fourth page. Note that the main window is shared between first and fourth page.
In the main window, define a "command" node to go to the second page "at the end of main window".
2020 Dec 28 2:42 PM
Thanks for your reply..
I have made changes as you suggested: But still i am getting dump.
Page 1-> set next page as Page 4 and created a command after main window as Page 2
created a new page page 4 -> in this i have copied the Page 1 main window and placed at the top of the page.(only thing i have increased the height of the main window but width is same)
Similarly i have created a page 5 for Page 2(continuation of Page 2 main window to page 5) and copied the main window of page 2 to page 5 (just increased the height but width is same).
One question - what should be set for next page for Page 4 and Page 5??
and also since i copied the main window( new page command is also copied to page 4 and page 5) do i need to delete this(since deleting this is also affecting the Page 1 and page 2 new page command as i have copied the main window).

2020 Dec 28 4:07 PM
@ravi.kumar183 somewhere in the form the main window width is not the same...
@sandra.rossi
"In the main window, define a "command" node to go to the second page "at the end of main window".
Can't get it to work ( testform in attachment; the command "go to page" on "after the main window only" isn't executed). It's kinda understandable - command node is in main window, so it's not after it (unlike secondary window)... It would have been nice trick, had it worked. Or am I misunderstanding something...? 🙂
Cheers
Janis
2020 Dec 28 7:48 PM
Jānis B In my old notes, I had written something about "after the main window only" and the secondary window, but couldn't understand what I meant. So I guess you must be right! Thanks for correcting!
2020 Dec 29 6:19 AM
Thanks for your reply.
As i have 2 different main windows in 2 pages i thought the width should be different - But since i made all the main windows irrespective of any pages, then only no dump is occurring. But why it should be the case because i may need one main window of 4 columns and other main window of 3 columns - Dump is not occurring only if i made all windows of same width - but here the second main window of page 2 entries are not printed(earlier it was printing - but since i made all main windows of same width the data entries are missing - any idea on this?? i have checked the window start and end point)
And also one more issue - In page1 main window - i have 5 rows of data - first row is heading - 2nd row is of some calculations - 3rd row is the internal table entries (which might be 10 or 20 lines) -here page break is happening at 3rd row(all 3rd row entries are printed in next page - i need some data entries to be printed in page 1 depend on the size and rest of the entries in next page) - this is not happening all entries are printed in next page and there is lot of space left in page 1 - how to print the lines continuously rather than a pair of rows.
Is there any where protect lines/page break command is there? because if the entries are less than 10 lines then it is printed in first page,but if the entries are more than 10 - then all entries are printed in page 2 rather than 10 in page 1 and left in page 2 - do i need to write any program lines to print first 10 lines in page 1 and >10 in page2??
Thanks in advance.
2020 Dec 29 1:57 PM
Hello @sandra.rossi and @Jānis B
I have implemented the flag logic for the logo window to be printed at the end of the main window - this is working perfectly - Thanks.
For the issue of the page break to happen after the 10 lines in the main window - i have implemented logic using alternatives - kept a logic for increment the lines, once it is reached 10 i have written a command to call the Page 4 - but this is not working( as i have 4 columns in which 2 columns are constants are other 2 are loop for internal table) - where exactly shall i write the alternative logic? is it in cell11(this is not a loop) - loop is there only in cell12 and cell14.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |