on 05-04-2011 12:41 PM
Dear all,
is there a UI DI SDK example, with source code, I can follow to add a new tab in a standard SAP B1 form (i.e. Item Master Data)?
Is it possible to prepare the new tab using ScreenPainter and then, via SDK, add the new tab and populate it loading the srf file?
Regards
Emanuele
Edited by: Emanuele Croci on May 4, 2011 1:44 PM
Hi Emanuele,
Try This.......
If pVal.FormType = "150" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True Then
Try
Dim oitem As SAPbouiCOM.Item
Dim ofolder As SAPbouiCOM.Folder
Dim oform As SAPbouiCOM.Form
Dim ouserdatasource As SAPbouiCOM.UserDataSource
oform = sbo_application.Forms.GetFormByTypeAndCount("150", 1)
ouserdatasource = oform.DataSources.UserDataSources.Add("FolderDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 254)
oitem = oform.Items.Add("folder", SAPbouiCOM.BoFormItemTypes.it_FOLDER)
oitem.Left = 380
oitem.Top = 90
oitem.Width = 150
ofolder = oitem.Specific
ofolder.Caption = "USER"
ofolder.DataBind.SetBound(True, "", "FolderDS")
ofolder.GroupWith(("9"))
Catch ex As Exception
sbo_application.MessageBox(ex.Message)
End Try
End If
Thanks
Shafi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.