Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr
Letzter Beitrag:
vor 1 Jahr
Beteiligte Autoren:
Gianni Spano, cardcoder, Fabrice Harari

[WB18] Using looper ***SOLVED ***

Startbeitrag von Gianni Spano am 02.05.2017 11:10

Hello to all

I'm trying to use for the first time the looper control in a webpage.
In the looper i need to have 2 edit control (date with calendar button and a multiline text for some description).

When i add a line in the looper and try to insert a date after the press of TAB key, the date inserted is not shown as if it is cancelled or cleared by someone.. The same beahviour is for the multiline text control. After the insert of some description the text is disappeared.

Pls, can someone tell me what do i missing? Do i need to apply some extra setting using looper?
For your information i already have used looper control in Windev without problem..

Thanks in advance for your help.


Re: [WB18] Using looper

Hi Gianni,

what type of project (classic, awp, php)?
what is your code?
WHERE is it?
Is it ajax or not?

we just don't have enough information to help

Best regards

von Fabrice Harari - am 02.05.2017 12:11

Re: [WB18] Using looper

Hello Fabrice

My project is Dynamic WeDev site type.

Looper is Ajax operating mode.
The looper control is in Cell with overflow setting to vertical enabled to show scrolbars.

Code is only :
LooperAdd (Loop_Diagnosi)

in a button click event

Each line of the looper contains 2 edit control: one for a date and the other for description as multiline text type.

When the looper is added i try to insert or select a date for the edit control and the date is shown regularly, but after i type something on the EditDescription control, all the values on the controls disappear. (!!!) leaving their content empty....

This is a strange beahviour.

This is the screenshot of the window:

Thanks in advance


von Gianni Spano - am 02.05.2017 13:09

Re: [WB18] Using looper

Hi Gianni,

As you know, I make php webdev sites.

I use the looper quite alot. My loopers are "classic" rather than "ajax".

Your code is missing the 2 items that you want to add.

LooperAddLine(Loop_Diagnosi, date, description) .... should work for you !!



von cardcoder - am 02.05.2017 13:24

Re: [WB18] Using looper

Hello Mike

Glad to hear from you :-)

Has you can see in the screenshot, the two controls have been inserted in the looper zone, so i don't think your solution is right.

I'm able to insert the two edit controls (date & description), but when i try to insert the value it remains in the field, and when i exit from the edit description is that the values entered disappear....I don't know why...there's not other process connected with them.


von Gianni Spano - am 02.05.2017 14:14

Re: [WB18] Using looper

Hello Mike

If i change the looper from Ajax to Classic, now the values entered remains in both edit controls, but when i push the button to add a new looper line, all the looper lines previously added are cleared as it is executing a refresh with a reset of the edit controls (????) including the lines already added previouly.

Do am i missing somethings?


von Gianni Spano - am 02.05.2017 14:56

Re: [WB18] Using looper ***SOLVED***

Hello to All

Using "classic" operating mode for the looper control, we need to set the "attribute" selecting the edit controls in the looper applying the property as "value".
With this little trick, now i'm able to see ALL the lines with the right values in their edit controls, even during a new "looperadd" .

Thanks to all for the attention.


von Gianni Spano - am 02.05.2017 15:08
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.