cancel
Showing results for 
Search instead for 
Did you mean: 

Binding Checkboxes with Data Fields

Former Member
0 Kudos

hi again , one question, is it possible to link a user-added checkbox with a data field from a table to show a stored state?, i tried using the valon and valoff properties to set whether it must or not be checked (depending on the values of some field) but it's not working, could someone help me with this please? thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Oscar,

here is my sample, how to connect user's checkbox with DB value.

Dim oCheckBox As SAPbouiCOM.CheckBox

Dim oDBds As SAPbouiCOM.DBDataSource

Set oCheckBox = frm.Items("ckDispp").Specific

Set oDBds = frm.DataSources.DBDataSources.Add("@ABC_DISP")

oCheckBox.DataBind.SetBound True, "@ABC_DISP", "U_Display"

The ValidValues in DB field "U_Display" are 'Y' when checkbox is checked, and 'N' when unchecked.

Hope, this helps.

Regads

Libor.

Answers (0)