PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB22] table operating in browser mode
[WB22] table operating in browser mode
Iniciado por guest, 25,ago. 2017 13:18 - 5 respuestas
Publicado el 25,agosto 2017 - 13:18
Hi,

Again I'm boldly going where no man has gone before.
I'm using a table in browser mode with a checkbox column.
On change of the checkbox, the only possible code to use is "Exit with modification" (onChange).
(BTW, onChange is not the same as Exit with modification, so some confusion there)
All works fine, except that unfortunately this code is ran twice, which I find rather inefficient.

But they're not gonna catch me on this one, so I'm making my own check box column using an image.
I'm using the click on the image to toggle the check column.
First I doubt my code, but then I find that the click code is also fired twice, so the checkbox is unchanged in the end :hot:

I'm sending a page to support and for now I'm going to the third workaround: change the table into a looper (browser mode) and see what happens.
Just another day in the life of a WX developper. ;-)

Kind regards,
Piet
Publicado el 25,agosto 2017 - 13:45
Hi,

I found an easier workaround by using a global boolean to skip the second execution.

Kind regards,
Piet
Publicado el 26,agosto 2017 - 10:41
Hi Piet,

Thank you for sharing your adventures in outer space. Do you use the HTML5 upload control bij any chance ?

Best regards,

Aad
Publicado el 26,agosto 2017 - 21:56
Hi Aad,

Not yet, but I think Fabrice has a good point: did you set the html standard to html5?
(Project description, Advanced tab)

Kind regards,
Piet
Publicado el 27,agosto 2017 - 10:57
Thanks Piet,
It wasn't clear to me what he meant by compiling HTML5. You put me on the right track.

Best regards,

Aad
Publicado el 28,agosto 2017 - 03:08
Hi AAd:

Html 5 is the new standaard. I guess you have to set the page or the project on html5 as well.


Hi Piet:

It is way easier to use a looper control. You might be able to do it with your work arround for now . But if you want to add stuff in the future you might get stuck after all. So Better using the looper.

With the looper you have control of everything. On click etc all is available. I use tables onley if I want to present something. If I need to edit it (inplace) as well I always use a looper.

Regards Allard