Skip to Content
author's profile photo
Former Member

Adding new tab in standard form

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?



Edited by: Emanuele Croci on May 4, 2011 1:44 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on May 04, 2011 at 12:05 PM

    Hi Emanuele,

    Try This.......

    If pVal.FormType = "150" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True Then
                    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")
                Catch ex As Exception
                End Try
            End If



    Add comment
    10|10000 characters needed characters exceeded