PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Webdev 19 - check box column selected in table
Webdev 19 - check box column selected in table
Iniciado por guest, 08,may. 2015 16:33 - 7 respuestas
Publicado el 08,mayo 2015 - 16:33
Hi,

in a AJAX table, there's a checkbox column, only when the user clicked on the checkbox column, i want to know the row number that's check/uncheck. And not on other column..
so i cannot use TABLESELECT(Table) function..

Which function to use ?

Regards,

PETER ZHOU
Publicado el 08,mayo 2015 - 18:30
Hi Peter,

tableinfoXY?

Best regards
Publicado el 09,mayo 2015 - 07:26
Hi Fabrice,

tableinfoXY is not available for webdev.

Any other function or methods ?

Regards,

PETER ZHOU
Publicado el 09,mayo 2015 - 10:19
Hi Peter,

It's very simple, the whenever modified code of the checkbox will give you the the current line by using the tablename.
Any reference to a column without index will give you the value of the column for the line of the checked or unchecked checkbox.

Regards,
Piet
Publicado el 13,mayo 2015 - 07:57
Hi Piet,

In my project, the checkbox's whenever modified code always return the previous selected row. so what i did is to have it called a button clicked code and it selected back the table row, then i will know which row's selected.

Another issue i found out is that if the checkbox is not linked to any table ( only the rest of the columns are ), sometime, the modified code that doesn't get "triggered".

Regards,

PETER ZHOU
Publicado el 13,mayo 2015 - 08:03
Hi Peter,

I use this a lot and never found problems.
Did you set your table to "loaded in memory"?
Otherwise create a small test project and send it to PCS tech support.

Regards,
Piet
Publicado el 13,mayo 2015 - 11:08
Hi Piet,

I forgot to mention that it's a QUERY TABLE. Could this be the reason ?

Regards,

PETER ZHOU
Publicado el 14,mayo 2015 - 13:38
Hi Peter,

It should work for query tables too.
I'm assuming it only works if you set the table to "loaded in memory".
Another problem could be if you are in AWP mode.
Ajax tables behave in a very strange way in AWP.

Regards,
Piet