Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr, 7 Monaten
Letzter Beitrag:
vor 1 Jahr, 7 Monaten
Beteiligte Autoren:
Luis Antonio Gutiérrez Flores, Fabrice Harari, Ruben Sanchez Peña, DarrenF

[WB20] Controls inside Looper aren't working correctly

Startbeitrag von Luis Antonio Gutiérrez Flores am 13.12.2016 23:02

Good afternoon, I'm working with a looper that is having an odd behavior. I got an EDT with quantity of items and a plus and minus buttons, that just add and substract from it, but whenever I click any of those it doesn't do anything, it causes my page to "flash" as when clicking a button without ajax, and doesn't update the value in my EDT. The other control is a checkbox, everytime I click it, it checks and unchecks itself, also when clicking it it also makes an Image control to disappear and appear again. The checkbox doesn't have any code and neither does the Looper in any of it's events. The code for one of my buttons is the following:

IF LOOP_Carrito.EDT_Cantidad > 1 THEN
BTN_menos..State = Active
IF LOOP_Carrito.EDT_Cantidad = 99 THEN
MySelf..State = Grayed

This is making me nuts! TIA


Hi. Did you tried with LOOP_Carrito[LOOP_Carrito].EDT_Cantidad to access the current Looper line?


von Ruben Sanchez Peña - am 14.12.2016 00:05

This sounds like a looper "Attribute" issue. Have you created the Attributes that link to the controls in your looper?


von DarrenF - am 14.12.2016 08:28

1. it's a looper, use attributes

2. is your code browser or server?

3. if browser, are your buttons define to have no action on the server side?

4. if server, is your code ajax?

Best regards

von Fabrice Harari - am 14.12.2016 09:34
Thanks to everyone, and yes it was something to do with the attributes and doing the LOOP_Carrito[LOOP_Carrito], also worked! My code was on sever side and yes, it was using ajax. :)

von Luis Antonio Gutiérrez Flores - am 14.12.2016 20:44
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.