Page 1 of 1

Checkbox issue in List VLFOne

Posted: Thu Oct 31, 2024 9:01 am
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 46911 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

Re: Checkbox issue in List VLFOne

Posted: Wed Dec 04, 2024 8:41 am
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.