on 10-13-2009 9:41 AM
Dear Experts,
I am facing problem in Smartform.
My requirment is to print two different pages in form first page variable but second page is fixed, so my exact requirment is i need to print second page is end of the main window and once only.
so output of pages should come as
Firstpage / Firstpage / Firstpage / Lastpage
(if main window data is of three pages)
Firstpage / Lastpage
(if main window have minimum data)
please suggest me for the same.
Thaks and Regards,
Tarun Kumar
Edited by: Devalla T Kumar on Oct 13, 2009 10:41 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Keep 'next page' as 'page1' in general attributes of page1 and use a command in main window of first page and set this command 'go to new page' as 'page2'. And also keep 'next page' in second page 'blank'. This will work for sure.
Regards,
Mukesh Yadav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check next_page is initial or not. If the NEXT_PAGE is intial then only call last page.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try it in this way, use a command node, in the command node, in GO TO NEW NEW PAGE, give the name of last page,
in the general attributes of first paeg, set it as first page only. In the general attribute of last page, keep it blank. See if it
workls. It should
Remember to set the condition in the command node properly that is when it should move to next page. Possibly using it in the main window of the first page will help
Edited by: subhajit bhadra on Oct 15, 2009 7:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
You can put a condition for the window levelor page levellike SFSY-PAGE = SFSY-FORMPAGES.
Which means, print the widow or page when the current page number is eqaul to the number of form pages.
Hope this helps.
Regards,
Muktavar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You will need to add a command node at the end of the main window. If you search the forums you'll find more detail.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have used LASTPAGE in General attributes of FIRSTPAGE and in COMMAND i used FIRSTPAGE in Go to new page.
and nothing in LASTPAGE's General attributes.
I guess this should work, but typically I would define the next page of FIRSTPAGE as FIRSTPAGE, then call LASTPAGE using the command at the end of the main window in FIRSTPAGE (setting the condition 'only after end of main window).
Regards,
Nick
Hi,
Use a read statement on the internal table so that it will give the number of records in the internal table store that value in a variable called g_count and in the main window keep another variable g_var and increment it for each loop pass.
Then keep a command statement on the internal table in the smartform and in that command give the go to value as Second Page and there give the condition as
G_count = g_var.
So that when all the records are printed then the command will automatically transfer to the second page.
Hope this will help you,
Regards,
Kiran.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.