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: 

Smartforms : Two table in main windows.

Former Member
0 Kudos
1,090

In main window I want to print two table one is on left side and other on right side.

Itab1 on left having 3 column .

Itab2 on reight side having column 4.

Each having 10 ,10 records , table should be dynamic.. some time 100 also.

This stuff is for Saving print paper.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
296

Hi,

create the tables and in Table Details give the Horizontal alignment for table 1 as 'LEFT' & provide some Table width 'Half length of window' CM, for table 2 give Horizontal alignment as 'LEFT' & provide Table width as 'remaining length of the window' CM.

Hope it helps!!

Rgds,

Pavan

4 REPLIES 4

Former Member
0 Kudos
297

Hi,

create the tables and in Table Details give the Horizontal alignment for table 1 as 'LEFT' & provide some Table width 'Half length of window' CM, for table 2 give Horizontal alignment as 'LEFT' & provide Table width as 'remaining length of the window' CM.

Hope it helps!!

Rgds,

Pavan

Former Member
0 Kudos
296

Hi,

In main window create two tables. In first table(click Details button in Table tab) give table width as 5.50 CM. Line type length also to be changed to 5.50 CM.

In second table(click Details button in Table tab) give table width as 5.50 CM and Horizontal Alignment (Left) (7.00 CM) becoz first and second tables should not colide. Line type length also to be changed to 5.50 CM.

For both tables you can give any pattern. For your comfort change the width accordingly, but keep in mind left margin of second table should not colide with first table width.

Thanks,

Thilotham.

sujeet2918
Active Contributor
0 Kudos
296

Hello Jim,

If you want to print two table the what's a problem?? simply do like same as u do with single internal table. create one table in smartform and divide 3 colums for itab1 and assign remaining fields like itab2.

Have a Nice Day,

Regards,

Sujeet

Former Member
0 Kudos
296

There will be a problem in keeping two tables in one main window because after completion of first tables data it will start printing the second table data.

So I have one good idea for it :

Create one more internal table which contains all the fields of Itab1 and Itab2.

then fill this internal table with the data of both the internal tables with looping and modifying on index.

and then take only one table in smartform's main window and print it.

I think it will solve your problem.