cancel
Showing results for 
Search instead for 
Did you mean: 

how to add any method in load of UDO in SAP

Former Member
0 Kudos

Hi, this is a much time for me to write same question, but there is no one who knows solve. But due mandatory I have to write same, I want to add any Button to my UDO form and write any code in this Button. But when I do all same and check it in B1 Client it button doesn't work as if there is no code. Button doesn't give any reaction. How can I solve it? I did as following :

1. I create user define table For example "@test"

2. I make user defined field in this table

3. Then I make UDO form using Object Registration Wizard For example "TestUDO"

4. I open Visual Studio 2013 and start new project

5 I add new item such as UDO Form and I choose My new UDO ("TestUDO")

6 I drag button to my UDO and write any code in this button.

7 I click right side of Mouse and click save to database and it shows Save successful

8 Problem is in here so when I go B1 client and open my new UDO the button in here doesn't work

----------------------------------------------------------------------------------

Thank you very much for spend time to read

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Friend, thank you for your answer if I understand correctly that I can modify design of UDO form with Visual Studio by adding UDO form to my Visual Studio form. It shows me changness when I check it in B1 Client. If I want to add Button in Which has messageBox("test") to this UDO It doesn't work, because I must run my Visual Studio form. In so case It will work. And more question, how can I save this messageBox code for always Regardless of the Visual Studio form running?

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Firstly you said that the Button is not working. Now, you mention that you cannot open the UDO Form. Please explain or provide screenshot what is happening actually?

Have you assigned the "SAP Add-ons" license to the SAP user? If not, assign the mentioned license, exit from SAP Business One Client and open the B1 Client again.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

Former Member
0 Kudos

What do you mean "to keep running the Visual Studio project as well." ? I run my form in Visual Studio but can't open UDO form

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Elchin,

"Save UDO to Database" only saves the changes that you made on the UDO Form. To make it work or the events to be executed, you need to keep running the Visual Studio project as well.

Kind regards,

ANKIT CHAUHAN

SAP SME Support