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

Loop using template

Former Member
0 Likes
2,908

Hi All,

I hae designed a smartform where due to some design restriction I need to use a template and loop it on some internal table.

I have used a loop and then a template but the vaues in then are getting overwritten.

I have given rows as 0 to 0.

Please let me know how this issue can be solved.

Regards,

Elena

8 REPLIES 8
Read only

Former Member
0 Likes
2,874

Hi,

I don't know what restrictions you have, but you can do the following:

1. Create a loop (not table)

2. Create the template under this loop (not after) and give the line from 1 to 1 (not 0 to 0)

3. Create text nodes under the template and give it line 1, column x (x = whatever column you want to put the value in.

Best regards,

Zhou

Read only

0 Likes
2,874

Hi Zhou,

I have tried that but it just prints the second line from the iternal table over which the loop is done.

It doesnt print all the four lines that the internal table is populated with.

My template is under the loop.

regards,

Elena

Read only

0 Likes
2,874

It should work, just tested it here myself.

Have you defined your text node with output in line 1, column xx

My test data with 5 records:

The loop:

Template setup:

Text node setup:

Result:

The node hierarchy is as follows:

I think you have done something wrong along the way. Please check all the settings.

Best regards,

Zhou

Read only

0 Likes
2,874

Hi Zhou,

My seetings are the way u have shown. I do not understand what could have gone wrong.

Regards,

Elena

Read only

alessandroieva
Active Participant
0 Likes
2,874

Hi,

why you not create a table by command 'Table' into the smartforms?

is more easy and more fast  to create.

let me know,

AI

Read only

former_member201275
Active Contributor
0 Likes
2,874

Is your LOOP set up as follows, because this works perfect for me?

Read only

0 Likes
2,874

Hi Glen,

Yes my loop set up is the way u have shown

regards,

Elena

Read only

0 Likes
2,874

Do you mean the 'INTO' and 'ASSIGNING' is different? That doesn't influence the printing of the different lines.

Can you put screenshots of your loop, template & text setup?