cancel
Showing results for 
Search instead for 
Did you mean: 

related to optional buttons(screen painter)

Former Member
0 Kudos

Hi folks,

I have designed a form using screen painter with 4 optional buttons.

How to group the buttons into two groups so that I can click only button in a group of two buttons....

can we do this statically using screen painter or we have to approach SDK coding

kindly help me out to find the answer

regards

shashi kiran

Accepted Solutions (1)

Accepted Solutions (1)

barend_morkel2
Active Contributor
0 Kudos

Hi Shashi,

The best way to achieve the linking is through code.

Using the GroupWith property.

Dim oItem As SAPbouiCOM.Item = Nothing

Dim oEdit As SAPbouiCOM.EditText = Nothing

Dim oCBx As SAPbouiCOM.OptionBtn = Nothing

oItem = oFrm.Items.Item("cxPrimary")

'Binding

oCBx = oItem.Specific

oCBx.DataBind.SetBound(True, "@" & GlobalResource.tbl_XM_DN, _

"U_" & GlobalResource.fXD_AG_ISP) '''Set the binding if you have not done this in the screenpainter.

'Valid Values

oCBx.ValOff = "0"

oCBx.ValOn = "1"

oItem = oFrm.Items.Item("cxCreateJl")

'Binding

oCBx = oItem.Specific

oCBx.DataBind.SetBound(True, "@" & GlobalResource.tbl_XM_DN, _

"U_" & GlobalResource.fXD_AG_CJL)

'Valid Values

oCBx.ValOff = "0"

oCBx.ValOn = "1"

oCBx.GroupWith("cxPrimary")

Now do this with your other 2 option buttons as well....

Answers (0)