Skip to Content
avatar image
Former Member

SAP Business One Studio For Visual Studio UDO Form

Hello everybody,

I use SAP B1 Studio for Visual Studio and I need to add on a UDO form new Button.

When I include the form in my project and add a new Button (Button4 in image), as soon as I run my project and try to open the UDO form from B1 Tools > Default Forms I get an exception at OnCustomInitialize() function saying that "Item_0" does not exist, in line

this.Button4 = ((SAPbouiCOM.Button)(this.GetItem("Item_0").Specific));

Can someone please explain what am I doing wrong?

Kind regards,

Dimitris Theotokatos

udoform.png (12.8 kB)
udoproperties.png (10.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 04, 2017 at 04:41 PM

    Hi,

    Have you used the option "Save UDO to Database" once the customization was done? Once you are done with your customization, go to Solution Explorer, Right Click on UDO Form in the Project and Select the option as 'Save UDO to Database'.

    Hope it helps!

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello ANKIT,

      it was simpler than I thought. Thank you very much for your answer.

      I would also like to ask you if there is a way to update my UDO Class in Visual Studio if the UDO Object in SAP Business One has been changed. For example, if some new columns have been added at UDO's lines table.

      Kind Regards,

      Dimitris Theotokatos