Checkbox issue in List VLFOne

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
dhunt
Posts: 65
Joined: Fri Feb 08, 2019 3:06 am

Checkbox issue in List VLFOne

Post by dhunt »

My #PRIM_List checkbox looks like this but i cant change it if its unchecked or checked. Any one have this issue?
Untitled.png
Untitled.png (2.51 KiB) Viewed 46916 times

Code: Select all

Define_Com Class(#PRIM_LIST.CheckBox) Name(#ListColumn5) Displayposition(6) Parent(#List)

Evtroutine Handling(#ListColumn5.Click)

If Cond(#ListColumn5.CurrentItem.ReadOnly *EQ False)
#SYS_WEB.Alert Caption("checkbox read only false")
If Cond(#ListColumn5.CurrentItem.ButtonState *EQ Checked)
#SYS_WEB.Alert Caption("checkbox checked")
#ListColumn5.CurrentItem.ButtonState := Unchecked
Else
#SYS_WEB.Alert Caption("checkbox not checked")
#ListColumn5.CurrentItem.ButtonState := Checked
Endif
Endif
Endroutine
dhunt
Posts: 65
Joined: Fri Feb 08, 2019 3:06 am

Re: Checkbox issue in List VLFOne

Post by dhunt »

The issue was that the Source field was not a boolean field. After I get back the data from the working list I had to change a boolean field used for the checkbox to either true or false based on the data.
Post Reply