cancel
Showing results for 
Search instead for 
Did you mean: 

problem while calling new page in smartform.

Former Member
0 Kudos

hi all,

i am using smart forms for displaying the PO details.when the details of a PO are over flowing then a new page is dynamically created.

Now my requirement is i have to create a new page at the end of PO details which will display all the ITEM TEXTS at last page.

i have used COMMAND to navigate to the next page. now the problem is if i am using the main window for displaying the item texts then it is not working. A secondary window or a final window is working for this purpose but the problem is if i use the secondry or a final window then the excess data is not flowing. (i.e a new page is not being created as it happens with the main window.).

can any one help me how to use the main window in the next page ?

or how to handle the excess data in secondry or final window?

Edited by: laxmikanth bethi on May 19, 2009 9:10 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Declare a count variable and keep incrementing inside the loop with every loop pass and use the Describe statement on the Internal table which contains the PO Details and get the number of records into another variable Rec_count. Then proceed as follows

Display the item texts in the main window only after displaying the PO details but the thing is that you have to give a command in the place where you are dispalying the item texts and in the command give the condition as

Count = Rec_count.

Which indicates that all the records in the PO details table are printed and then the Command is triggered and it will navigate to the new page.

Hope this will help you.

Regards,

Venkat.

Answers (2)

Answers (2)

former_member205763
Active Contributor
0 Kudos

create page 1 and page 2 having main windows both.

now use page 1 to print po details, ur next page of page 1 shud be set sa page 1 itself, now at end just include a command node to direct it to page 2(which will hv item texts), and put condition at end of main window, so that thsi command node triggers only after ur po details are printed

Edited by: Kartik Tarla on May 19, 2009 12:45 PM

Former Member
0 Kudos

hi kartik

tks for ur timely reply .

i did the same way u instructed,

i kept a breakpoint in side the program lines of main window(of page 2).

but the code in main window of page 2(item texts) is not triggering.

i donno why ???

former_member205763
Active Contributor
0 Kudos

what is the condition on command node that u have put.

Former Member
0 Kudos

i haven't used any condition in command....

Edited by: laxmikanth bethi on May 19, 2009 11:56 AM

Former Member
0 Kudos

hi all

any updates on this issue ??

former_member205763
Active Contributor
0 Kudos

ur command node is calling which page? page 2 it shud be

Former Member
0 Kudos

yes it is calling page 2 itself ( this second page is called for all the cases so i dint give any condition)

Edited by: laxmikanth bethi on May 26, 2009 8:29 AM

former_member205763
Active Contributor
0 Kudos

where have u included ur command node exactly

Former Member
0 Kudos

i have included the command in main window after all the process logic's

Former Member
0 Kudos

Hello,

Assign next page for second page also.

i.e.Firstpage --> Next page

Nextpage --> Next page