Skip to Content

Modifying an existing form in SAP B1

Hi everyone,

Is there any way to modify an existing form in SAP B1? If so can any one describe the complete procedure of doing that?Will highly appreciate it.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 07:16 AM

    Hi,

    Its more advisable to do it in the Menu Event rather than the Form_Load event and its got to be done in the Before_Action = False.

    In Menu Event,

    paste this...

    If pVal.BeforeAction = False Then

    Dim objNewItem As SAPbouiCOM.Item

    objItem = objForm.Items.Item("51")

    objNewItem = objForm.Items.Add("cbSQ", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)

    objNewItem.Left = objItem.Left + objItem.Width + 10

    objNewItem.Top = objItem.Top

    objNewItem.Width = objItem.Width

    objNewItem.Height = objItem.Height

    objNewItem.FromPane = "5"

    objNewItem.ToPane = "6"

    objCheckBox = objForm.Items.Item("cbSQ").Specific

    objCheckBox.Caption = "Sales Quotation"

    objNewItem.Visible = False

    objCheckBox = objForm.Items.Item("cbSQ").Specific

    objCheckBox.DataBind.SetBound(True, "", "01")

    Endif

    The above is a small snippet for the addition of a checkbox.

    Hope this helps.

    Satish.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 07:00 AM

    HI

    Catch the Form_load event of that particular form in before action false and place your control relative to some other control.

    Or you can fine one sample under SDK samples(SystemFormManipultaion)

    Hope it helps

    Regards

    Vishnu

    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.