Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.