‎2019 Jan 20 6:27 AM
Hello Experts,
My requirement is i have to create 2 pages which having 2 tables both are having more than 1000 records.
In first page i'm using main windows to overflow the data. Even i am using command to navigate next page.
For first page it is working fine.
But the problem now, in one smartforms we can create only one main window. If we have to overflow the data to the next page we have to create main window with command, which is not possible here cause i already used main window in first page. So for that i'm not able to show the complete records in Second page.
Could you please give me any solution so i will get all records in my smartforms.
Thanks in advanced 🙂
‎2019 Jan 20 7:41 AM
‎2019 Jan 21 7:42 AM
Thanks Prashant for reply.
I have pages with different windows length and width for some purpose. I don't know how to use template. For template we have to create rows statically, i'm not sure.
Can template will create auto rows like tables ?
I don't know how many records are there inside table, so how can i creates templates rows statically ?
If you know please share it will help me.
‎2019 Jan 20 10:20 AM
Inside the main window, if you define two subsequent Table nodes, wouldn't it work? (at runtime, the overflow table lines should automatically create a new page)
Insert a Command node between the two Table nodes to switch to the second Page template.
Note that a main window has automatically the same definition (same nodes) in all Page templates where you use it. The only possible difference is the window size and position.
‎2019 Jan 21 7:33 AM
Thanks Sandra for reply.
I tried with the command for first page it is working, but in second page again i have 1000 records so i need one more main window right ? If i want to see all 1000 records how can i do that ?
‎2019 Jan 21 7:48 AM
harshal_kulkarni The lines of the table should automatically flow to a new page "instance" at runtime because your table is defined inside a main window.
Wrong; 1000 records need a minimum of one "page node" (let's differentiate the two page terms: "page node" i.e. what you define in a smart form, versus "page instance" at run time, to make sure that we are talking about the same thing).
You could even use only one page node for displaying all records of both tables, a command node is not required.
I suggest you to create a very simple Smart Form with one page node containing one main window containing one table, and you'll see that 1000 rows are automatically displayed on multiple page instances.
EDIT: I renamed above "Page template" into "Page node" to avoid confusion with Template nodes, as per Richard Harper's remark.
‎2019 Jan 21 8:37 AM
I go with Sandra. A Template is the name of a Smartform object, so unless you mean a Template (which is a table with fixed values afaik), please don't use the term.
Secondly, if your second page has a different layout than the first, you can use conditions to print different elements on diffrerent printed pages but defined on the same smartform page.
Regards
Rich
‎2019 Jan 21 9:19 AM
richard.harper Thanks! To avoid confusion I renamed the page object "page node" in my post (because "node" or "node type" is the name that SAP use in the SAP Library)
‎2019 Jan 22 7:59 AM
Thanks richard.harper and Sandra for correcting me. I have 3-5 pages which having different contents. Some pages are in portrait mode or some of them are landscape mode. I want to print all pages.
As mentioned by richard.harper ,
How we can define all pages data in one page only and then print in different page ?
And after define in one page can we see all records ? which i'm facing now ?
Could you please explain me how to do that it will help me ?
Thanks 🙂
‎2019 Jan 22 8:42 AM
You will have a problem printing Portrait and Landscape from the same smartform page. You will need to have a seperate smartform page for that which you call as appropriate. However, most nodes in a smartform page have a 'Conditions' tab. This allows you to provide both freeform conditions (such as VBAP-MATNR <> '') or other events (Only on first page, Not On first Page etc) that if true allow the contents of the node to be printed.
You can also redirect your smartform to different pages using conditional logic.
Regards
Rich
‎2019 Jan 22 9:07 AM
harshal_kulkarni I think you should stick at the Main Window / Table problem in this question, and start a new question for the Portrait/Landscape, even considering that it's the same requirement for you.
‎2019 Jan 25 5:40 AM
Thanks richard.harper and sandra.rossi . I find out the way to create multiple main windows in Smartforms. Give me some time so i will write blog for it. 🙂
‎2019 Jan 25 8:33 AM