Skip to Content

smartform loop problem

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Aug 24, 2016 at 05: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.😭😊

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 24, 2016 at 04: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!😕

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2016 at 10: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).


    pastedImage_0.png (11.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2016 at 11:51 AM

    Hi,

    clear the work area using the program line

    thank you!!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 22, 2016 at 09: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.


    Capture.PNG (19.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 24, 2016 at 03:43 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.