Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
8
Erster Beitrag:
vor 2 Jahren, 9 Monaten
Letzter Beitrag:
vor 2 Jahren, 9 Monaten
Beteiligte Autoren:
PETER ZHOU, Piet van Zanten, Fabrice Harari

Webdev 19 - check box column selected in table

Startbeitrag von PETER ZHOU am 08.05.2015 14: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

Antworten:

Hi Peter,

tableinfoXY?

Best regards

von Fabrice Harari - am 08.05.2015 16:30
Hi Fabrice,

tableinfoXY is not available for webdev.

Any other function or methods ?

Regards,

PETER ZHOU

von PETER ZHOU - am 09.05.2015 05:26
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

von Piet van Zanten - am 09.05.2015 08:19
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

von PETER ZHOU - am 13.05.2015 05:57
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

von Piet van Zanten - am 13.05.2015 06:03
Hi Piet,

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

Regards,

PETER ZHOU

von PETER ZHOU - am 13.05.2015 09:08
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

von Piet van Zanten - am 14.05.2015 11:38
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.