on 02-08-2007 7:36 AM
hi all,
my smartform has only one page.
inside the main window there's a table node which will loop thru an internal table.
my task is to call a new page after each item.
i tried to put a coding note inside one of the cells.
NEW-PAGE.
but not successful, the main window still displays all the records in one page. i want to separate them, if there's 3 item, 3 pages.
how do i do that??
thanks! points will be awarded.
Message was edited by:
Yew Wing Chen
Hi,
Right-click - Create - Command and in the command specify a new page and the page you would like.
Regards,
Marius
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Dear!
To jump dynamically to the next page you must create a variable to store the number of linahs of your table.
After this, use a command Linah to check the value and a command to jump to the next page, I hope that in some way will help if not at this time other demands. As in the picture.
Att.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes!!! i managed to solved it by using folder node.
put all the table line inside the same folder and check the page protection option.
it will force a new page.
n thanks to those who contributed ideas..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yew,
Thanks for your reply. I have done what you have told but still all the records are displayed on the same page.
Let me explain my problem in detail. I have an internal table and using table node i am displaying the records. Since my internal table contains details of documents from BSEG table. I want that each document should be displayed on separate page even though they are in the same table node.
How can i do this? Can you please help me out.
I have done through loop node but i want to do with table node due to formatting issues of text.
Regards,
Bharat Mistry.
hi all,
i'm still unable to do the page-break thing..
anymore ideas?
i need to display something like this:
nationality: xxxxx
port: xxxxxx
date: xxxxxx
buyer: xxxx
then if next record, goto next page.....
all those currently i put into a table...as those fields displayed are dynamic.
i have a customized table to determine which fields are displayed.. if let's say port is not required, the display would be:
nationality: xxxxxxx
date: xxxxx
buyer: xxxxx
that's y i need to put into a table..
pla anymoe ideas are very much appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yew,
I don't know what type of data you're outputting and how many lines. If you create the main window tall enough to accomodate only 1 line item and then page protect it, then when it try to print the 2nd line item it will automatically jump to the next page. This is assuming if you allow enough room for 1 line item and that 2 line items will not be able to fit into 1 page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i put the command node in the table will give me error...
the function module returns INTERNAL_ERROR
edit: but i tried putting the command node outside of the table and inside the main window..i can goto next page but this is not what i want..
i want each new item new page..
Message was edited by:
Yew Wing Chen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The command can only be inserted into a Main window. Check you page atributes if next page is set and if you are calling a page without a main windows the next page should be cleared.
In your loop of items in the main window you can place the command after the last text element and some code before your main window to count the number of lines in the items table. In you loop just before your command insert code to add with every item being printed and then set a condition in your command to only kick of when total number of items less than counter in code.
Hope this helps.
i tried putting the command node but still cant print new page
can put command node inside the table?
and inside a cell?? as i'm using the table to loop through the internal table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes u can do it by inserting a commang node tich the GOTO NEW PAGE select the page1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.