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?

Regards

Emanuele

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
                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

    Add comment
    10|10000 characters needed characters exceeded