Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

unable to trigger 2nd page using command in smartforms

Former Member
0 Likes
1,064

i m trying to trigger next page using command in smartform but unable to get 2nd page.

1 ACCEPTED SOLUTION
Read only

bastinvinoth
Contributor
0 Likes
1,003

UMAKANTH KOMPELLI


You have to assign 1st Page's next page is 2nd Page  and 2nd Page's next page is 2nd Page.

also create command node to call the second page hope it will solve the problem

Regards,

Bastin.G

8 REPLIES 8
Read only

arindam_m
Active Contributor
0 Likes
1,003

Hi,

Check the following tutorial. I think will make things easy.

http://www.saptechnical.com/Tutorials/Smartforms/Command/Page2.htm

Cheers,

Arindam

Read only

Former Member
0 Likes
1,003

Thx dude,

my scenario s tht i have creatd smartform for PO where i hav 1st page PO details & 2nd page annexure page, i hav created 2 page,but when i am trying to trigger 2nd page for annexure it is not comng.i used the command go to next page with condition set as only after end of main window.i hav inserted dis command in main window after table.

Umakant.

Read only

0 Likes
1,003

Can you share your smartform xml please ?

Read only

arindam_m
Active Contributor
0 Likes
1,003

Hi,

Just to give you a heads up, The Command Node has to be a conditional trigger i.e. based on some flag that you set during processing of page 1 also the Command node in the General Attribute don't forget to check the Go to new page checkbox along with the page name.

Cheers,

Arindam

Read only

Former Member
0 Likes
1,003

i hav done all the necessary setting i.e chekbox for command & in conditions clicked aftr main.

also mentioned 1st page next page as 2nd page.but no result.

--Umakant.

Read only

arindam_m
Active Contributor
0 Likes
1,003

Hi,

In the conditions tab dont tick 'After Main'  it means it will only trigger after main window processing which is not your case. Check how many entries can display in first page say for example you can display only 15 entries(depending on your layout and window size). Then after 15 entries are processed set a flag then put the condition as flag = 'X' just as shown in the example.

You can also try the following:

Insert a CODE node in the MAIN node of the table. IN that say you increment a integer value say L_COUNT to count the Loop pass. Before that Count the number of entries in table and store in Global Variable in the smartform L_NO_OF_LIN indicating number of lines in table . Increase L_COUNT by 1 before you print the line.

IF L_COUNT is GT L_NO_OF_LIN. That means last entry in the internal table in printed. SO set a flag = 'X'. Put this in the conditions tab of COMMAND node. This will trigger command after all entries are processed.

Should help you to achieve your design

Cheers,

Arindam

Read only

bastinvinoth
Contributor
0 Likes
1,004

UMAKANTH KOMPELLI


You have to assign 1st Page's next page is 2nd Page  and 2nd Page's next page is 2nd Page.

also create command node to call the second page hope it will solve the problem

Regards,

Bastin.G

Read only

0 Likes
1,003

thanks guys for u r reply,

i resolved prblem where i triggered 3 different command node from main window of first page and it s working fine.

Thanks,

Umakant