Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

related to optional buttons(screen painter)

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

Former Member
replied

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....

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question