Skip to Content

UI API BP property value change

BP- I want check property value of Business Partner before to add into SAP its like to make qryGroup15 as mandatory.

looking for c# code.

thanks

Add a comment
10|10000 characters needed characters exceeded

  • Hi Lucky Singh,

    How the Business Partner is being added? Are you doing it manually via SAP Business One Client or via DI API?

    Here is the UI API code which you may have to change as per your requirements:

    if (pVal.FormTypeEx == "134" && pVal.ItemUID == "1" && pVal.EventType == BoEventTypes.et_ITEM_PRESSED)
    {
        var form = _form.GetFormbyUid(FormUID);
        var matrix = (SAPbouiCOM.Matrix)form.Items.Item("136").Specific;
        SAPbouiCOM.CheckBox oChk = (SAPbouiCOM.CheckBox)matrix.Columns.Item("2").Cells.Item(15).Specific;
    
        if (oChk.Checked == false)
        {
            application.StatusBar.SetText("Error Message");
        }
    }

    Hope it helps!

    Kind regards,

    ANKIT CHAUHAN

    SAP Business One Support

Related questions

1 Answer

  • Posted on Aug 24 at 03:05 PM

    Thanks ankit,

    now how can change property value to true

    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.