Application Development 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: 

Problem in smartforms

palash_mazumder
Participant
0 Kudos

Hi SMARTFORM GURU,,,,

I have to create 4 different page.In this page 4 different item data will be populated and I can not use template because data will be overflowed from one page to another.I have to use table inside main window.Actually smartform will be triggered from t code me323n.and when user click print preview

minimum 4 page will be generated.Supose in first page header data and item data present.The item data will be exceed from one page to another continued of first page.In second page  same header and item data .Item data will be exceed from one page to another continued in second page.Where item data will be populated in differnt pages .The table structure is different.

I have given the requirement snap.

Firs page

Header part

PURCHASE ORDER NO

DATE

1234

  1. 12.12.2009

Item part

Item no

quantity

Net value

price

Second page

Header part

Vendor  name

address

Item part

SES NO

QUANTITY

NET PRICE

Kindly note that in first page and second page header and item part totaly different.

So first page can have multiple page and second page can have multiple page.

So pls help

1 ACCEPTED SOLUTION

VijayaKrishnaG
Active Contributor
0 Kudos

Hi Palash,

You can create four different pages in the Smartform and set the Next pages (2 for first page, 3 for second page, four for second page and then again four for fourth page also).

You can use four different tables for four different page outputs.

Note: Though Smartform allows you to create main windows in every page, only one main window (in first page) will be executed, remaining main windows (in 2, 3 & 4 pages) will not be executed and you will get black in the main window area.

So, in the first main window after the Table nodes you create three "Command" nodes successively to create 2, 3, 4 pages.

Command nodes will be allowed only in main windows, only first page window will be executed. So, that you have to go as above.

Hope this may help you if I understood correctly.

Thanks & Regards,

-Vijay

7 REPLIES 7

former_member215424
Active Participant
0 Kudos

Hi Palash,

when do you want to trigger the second type of page ? , when the first page item table data is completely displayed (may be in several pages )?

romit_raina
Active Participant
0 Kudos

Hi,

Use the NEXT PAGE , which will be same as First page for "first page only" &  for second page use Next Page for "Second page only".

I think this is what you were looking.

Thanks

Romit Raina

Former Member
0 Kudos

You can also go like this..

1. create 4 pages in your smart form to display the 4 different internal tables

2. After displaying the item details{inside the main window} of first page , use COMMAND to go to second page and so on.

Former Member
0 Kudos

Hi Mazumder,

As your displaying the different header and item data in different pages use the conditions to trigger the appropriate page with correct data.So when the values in field is changed place the condition to trigger the correct page.

Regards,

khaleel.

hiriyappa_myageri
Participant
0 Kudos

Hi Palash,

You Can Define Four Internal tables.

In First Page :One For header and Item

In Second page:One For Header and Item.

Now in First Page: You Can Define One Command Like At End of table and Some Events

That time Control will decide to go for next page or not.

That means after Printing All items in first page it will move to second page.

After the control coming to Second Page it will print all items of second header in second page.

Thanks & Regards,

Hiriz...

VijayaKrishnaG
Active Contributor
0 Kudos

Hi Palash,

You can create four different pages in the Smartform and set the Next pages (2 for first page, 3 for second page, four for second page and then again four for fourth page also).

You can use four different tables for four different page outputs.

Note: Though Smartform allows you to create main windows in every page, only one main window (in first page) will be executed, remaining main windows (in 2, 3 & 4 pages) will not be executed and you will get black in the main window area.

So, in the first main window after the Table nodes you create three "Command" nodes successively to create 2, 3, 4 pages.

Command nodes will be allowed only in main windows, only first page window will be executed. So, that you have to go as above.

Hope this may help you if I understood correctly.

Thanks & Regards,

-Vijay

0 Kudos

In above case the 2, 3, 4 pages data will not be extended further.

If you want to be extended,

In this case, tables in 2, 3, 4 will not be extended to further pages.

1. Create four different pages.

2. Create four different tables for four pages output.

3. In the main window create table nodes and Command nodes alternatively. That means Table1, Command, Table2, Command etc.

Check the 'Go to New Page' option in Command Node but don't specify the page number.

-Vijay