cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new tab in standard form

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)