on 05-16-2008 2:47 AM
Hi,
I create some folders in Service Contract and I want to disable them in form Find mode.
Anyone have experince on it since folder just have Groupwith and select this 2 methods.
Thank.
Finally I use this in my item event and it work.hope it can help u
If (pVal.FormMode = SAPbouiCOM.BoFormMode.fm_FIND_MODE Or pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE) And pVal.BeforeAction = False Then
oForm = SBO_Application.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
oForm.Items.Item("folderA").Enabled = False
oForm.Items.Item("folderA").Visible = False
End If
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carol,
Finally I use this in my item event and it work.hope it can help u
If (pVal.FormMode = SAPbouiCOM.BoFormMode.fm_FIND_MODE Or pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE) And pVal.BeforeAction = False Then
oForm = SBO_Application.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
oForm.Items.Item("folderA").Enabled = False
oForm.Items.Item("folderA").Visible = False
End If
Regards
Wong Jing Dian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sridhar,
Tried but the folder still visible.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem. Any idea about code listed below?
If pVal.FormType = 65211 And pVal.ItemUID = 36 And pVal.FormMode = 2 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
If pVal.Before_Action = True And pVal.ActionSuccess = False Then
oForm = SBO_Application.Forms.Item(FormUID)
oForm.Items.Item("36").Visible = False
oForm.Refresh()
BubbleEvent = False
End If
End If
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the menu event of that form you can make that folder's property to false.
And in Add mode make them true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Capture the clcik event for thew folder and set bubble event to false if the form is in find mode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in find mode
objFrm.Items.Item("folderID").Visible = False
u try this
i hope this will help u
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.