on 09-30-2008 9:42 AM
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
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....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.