cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Business One Studio For Visual Studio UDO Form

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

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

Answers (0)