on 10-04-2017 1:51 PM - last edited on 02-04-2024 2:42 AM by postmig_api_4
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.