on 12-05-2007 6:57 AM
Hi everyone,
Is there any way to modify an existing form in SAP B1? If so can any one describe the complete procedure of doing that?Will highly appreciate it.
Hi,
Its more advisable to do it in the Menu Event rather than the Form_Load event and its got to be done in the Before_Action = False.
In Menu Event,
paste this...
If pVal.BeforeAction = False Then
Dim objNewItem As SAPbouiCOM.Item
objItem = objForm.Items.Item("51")
objNewItem = objForm.Items.Add("cbSQ", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
objNewItem.Left = objItem.Left + objItem.Width + 10
objNewItem.Top = objItem.Top
objNewItem.Width = objItem.Width
objNewItem.Height = objItem.Height
objNewItem.FromPane = "5"
objNewItem.ToPane = "6"
objCheckBox = objForm.Items.Item("cbSQ").Specific
objCheckBox.Caption = "Sales Quotation"
objNewItem.Visible = False
objCheckBox = objForm.Items.Item("cbSQ").Specific
objCheckBox.DataBind.SetBound(True, "", "01")
Endif
The above is a small snippet for the addition of a checkbox.
Hope this helps.
Satish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Catch the Form_load event of that particular form in before action false and place your control relative to some other control.
Or you can fine one sample under SDK samples(SystemFormManipultaion)
Hope it helps
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
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.