Skip to Content
0

SAP Business One Studio For Visual Studio UDO Form

Oct 04, 2017 at 12:51 PM

109

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
ANKIT CHAUHAN
Oct 04, 2017 at 04:41 PM
0

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

Show 1 Share
10 |10000 characters needed characters left 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

0