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: 

smartform loop problem

former_member218043
Participant
0 Kudos

Hi,

I created a smartform that need to loop over a table to display data.

it has one page and the loop is on the main window. but when the page is crossed to next page the first row is repeated and after that continus with the correct row.

like this:

first page :1        second page:1

                 2                              5

                 3                              6

                 4                              7

I checked the table which passes data from the program it is correct but I can not understand why this row is repeated.

please help me.

regards

Elnoosh

1 ACCEPTED SOLUTION

former_member218043
Participant
0 Kudos

finally I discovered the solution, my page had one page and 3 windows, in the first window I had a loop on the same table for the first row and on the new page always the first row was replaced in the same structure. I defined new variable for the upper window and it was solved.

12 REPLIES 12

jrgkraus
Active Contributor
0 Kudos

Hello Elnoosh,

it is difficult to respond without further information. Do you use the LOOP or the TABLE functionality? Could you paste a screenshot showing the tree of your LOOP/TABLE like this one (please expand all sub nodes first):

(Here you see a table as well as a loop node).

0 Kudos

yes, unfortunately it's hard to explore the smartforms. you are write.

Chintu6august
Contributor
0 Kudos

Hi,

clear the work area using the program line

thank you!!

0 Kudos

thank you Chintu,

would you please explain some more, where and how should I do this ?

0 Kudos

sorry I made a mistake, the output is as below, it means one row is omitted in display

please help me, what is the problem?!!!!

page1 : 1          page2: 1

               2                     6

               3                     7

               4                     8

0 Kudos

Hi,

Slightly increase the size of your main window, so the record which is omitting will get proper space to print there.

0 Kudos

I tried this, the omitted row is not displayed yet and the first record of the internal table  is always displayed at the beginning of each page.

shashank_agarwal
Participant
0 Kudos

Hi,

Check the Page-Break and Page Protection at the table level in table painter, if it is ticked please untick the same.

Thanks.

0 Kudos

thank you for your replies,

but I'm not using table, as it is showed in the picture I'm using a loop and template instead of table.

0 Kudos

Hello Elnoosh: Is it include the command like 'READ TABLE *** INDEX 1'  in program line (CODE1,CODE28,CODE54...)?

former_member218043
Participant
0 Kudos

I found some thing funny in my form, when I remove the upper windows of the main widow every thing gets ok, although there is enough place for the main window or even I make lots of place between these two windows, any comment and solutions!

former_member218043
Participant
0 Kudos

finally I discovered the solution, my page had one page and 3 windows, in the first window I had a loop on the same table for the first row and on the new page always the first row was replaced in the same structure. I defined new variable for the upper window and it was solved.