CHECKBOX LIST

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Albert
Posts: 16
Joined: Tue Dec 26, 2023 12:43 am

CHECKBOX LIST

Post by Albert »

Hello,
I am looking for help to add a checkbox to a list. Could someone please guide me? Thanks in advance
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

CHECKBOX LIST

Post 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 61599 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 61599 times
Kind regards,
René
Albert
Posts: 16
Joined: Tue Dec 26, 2023 12:43 am

Re: CHECKBOX LIST

Post 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.
Attachments
checkbox2.PNG
checkbox2.PNG (30.04 KiB) Viewed 61483 times
checkbox1.PNG
checkbox1.PNG (174.78 KiB) Viewed 61483 times
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

CHECKBOX LIST

Post 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 60317 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 60316 times
Albert
Posts: 16
Joined: Tue Dec 26, 2023 12:43 am

Re: CHECKBOX LIST

Post 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
Post Reply