Page 1 of 1

CHECKBOX LIST

Posted: Wed Dec 27, 2023 7:03 am
by Albert
Hello,
I am looking for help to add a checkbox to a list. Could someone please guide me? Thanks in advance

CHECKBOX LIST

Posted: Wed Dec 27, 2023 9:48 pm
by René Houba
Hi Albert,

Please use:
Define_Com Class(#PRIM_LIST.CheckBox)

Below a little example source of a web page:
CheckBox in List VLF-ONE (1).PNG
CheckBox in List VLF-ONE (1).PNG (66.5 KiB) Viewed 61600 times
If you start the example, it will check which entries have been selected:
CheckBox in List VLF-ONE (2).PNG
CheckBox in List VLF-ONE (2).PNG (36.63 KiB) Viewed 61600 times
Kind regards,
René

Re: CHECKBOX LIST

Posted: Wed Dec 27, 2023 11:06 pm
by Albert
Hello René ,

thank you very much for your response, but I want to incorporate a checkbox into the list generated by the SQL filter. I'm convinced that there must be a way to achieve this.

I've already added a field named 'STD-CHKBX' to the list , and now I want to place a checkbox inside it.

CHECKBOX LIST

Posted: Thu Dec 28, 2023 6:56 pm
by René Houba
Hi Albert,

I'm not 100% sure, but I don't think its possible to do that in that list (perhaps someone else knows?)....

The reason is that this list in handled by:
VLF-ONE Instance List (1).PNG
VLF-ONE Instance List (1).PNG (25.8 KiB) Viewed 60318 times


Which is related to some JavaScript that we deliver, and this should NEVER be changed:
VLF-ONE Instance List (2).PNG
VLF-ONE Instance List (2).PNG (18.95 KiB) Viewed 60317 times

Re: CHECKBOX LIST

Posted: Fri Jan 05, 2024 9:02 pm
by Albert
Hello René Houba

Thank you for your assistance. Yes, you are right, it's not possible. I tried modifying the JavaScript, but I couldn't manage to add the checkbox to this list. Thank you for your help