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

two loops in main window in smartforms

Former Member
0 Likes
925

Hello Friends,

I have a requirement in which i want to print two different data in the same from and such tht the first loop data should not overwrite second loop data.

In brief:

header title

loop.

endloop.

item title

loop

endloop

how to restrict no of items printed inside first loop so tht it should not overwrite other loop data.??

Thanks,

Sunny

Hello Friends,

I have a requirement in which i want to print two different data in the same from and such tht the first loop data should not overwrite second loop data.

In brief:

header title

loop.

endloop.

item title

loop

endloop

how to restrict no of items printed inside first loop so tht it should not overwrite other loop data.??

Thanks,

Sunny

4 REPLIES 4
Read only

Former Member
0 Likes
698

Hi Sunny,

Create 2 text elements respectively for header and item.

Then use protect and endprotect for each text element.

Now to avoid over writing try taking 2 windows for header and item respectively then pass your data

Hope it helps!

Much Regards,

Amuktha.

Edited by: Amuktha Naraparaju on Feb 16, 2009 5:19 AM

Read only

Former Member
0 Likes
698

Hi,

You can use 2 separate internal tables with the required data you want to appear in both.

I hope this solves your problem.

Read only

Former Member
0 Likes
698

hi.

Send the data to the smartforms from your driver program in two different tables. means seprate the data according to ur need in two itab and pass them to smartforms.

Now in smart form create two table window. and in table parameter tab write

itab1 into itab1.

itab2 into itab2.

create lines independently fro both tables and display it.

hope u got it

Read only

Former Member
0 Likes
698

hi,

use different text window for both the loops so the data will not be overwritten.

i.e., in the first loop take a text window and write the data over there and in the second loop again define a text window and write the data over there.

or you can define 2 tables with the loop of 2 different internal table.

thanks

sarves