08-21-2016 10:57 AM
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
08-24-2016 6:21 AM
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.
08-21-2016 11:09 AM
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).
08-21-2016 11:27 AM
yes, unfortunately it's hard to explore the smartforms. you are write.
08-21-2016 12:51 PM
08-22-2016 5:31 AM
thank you Chintu,
would you please explain some more, where and how should I do this ?
08-22-2016 7:04 AM
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
08-22-2016 7:48 AM
Hi,
Slightly increase the size of your main window, so the record which is omitting will get proper space to print there.
08-22-2016 8:23 AM
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.
08-22-2016 10:09 AM
Hi,
Check the Page-Break and Page Protection at the table level in table painter, if it is ticked please untick the same.
Thanks.
08-22-2016 10:35 AM
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.
08-24-2016 4:43 AM
Hello Elnoosh: Is it include the command like 'READ TABLE *** INDEX 1' in program line (CODE1,CODE28,CODE54...)?
08-24-2016 5:37 AM
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!
08-24-2016 6:21 AM
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.