cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with UDO

Former Member
0 Kudos

Hi all,

i've created a UDT (Master Data) and a UDO on it with all options (find, add,...), and i've created a form wich datasource is the table i've created,

now i have problem with the UDO, cause when i open the form on SBO the data navigation bar is disabled.

So i guess that it's a problem with the execution of the UDO, or it miss something on code.

Has someone an idea about this?

Help apreciated

Regards

Haifa ABID

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hy,

you should have te following xml code in your form (at the bottom when you use the form generator)


<DataBrowser BrowseBy="eDocNum"/>

where eDocNum is the name of the field in your form!

Greetz,

Former Member
0 Kudos

Hi Haifa

Other thing to do is to insert code when you load your form. Then try to put

oForm.DataBrowser.BrowseBy = "Code";

Code is the item on the form that you want to browse by. This code (edittext in your form) must asigned a datasource (i think).

Hope this helps

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Aitor - you are right. The same BrowseBy property should be present in the XML

of the form. Have a look at the forms generated by UDO Form Generator.

Former Member
0 Kudos

Hi,

Thank you very much for your help,

I've added this code for the UDO:

"oCreationParams.ObjectType = "UDO_401";"

and the function add, update, create work very well. and then i want to activate the navigation buttons in the application toolbar for the "UDO_401" UDO by using this code :

"_Form.DataBrowser.BrowseBy = "_Code";"

knowing that "_Code" is the EditText mapped with the field Code of a user table.

"_Code.DataBind.SetBound(true, "@SA_OCPCH", "Code");"

But it doesn't work, I don't know why?!!

Could someone help me

Haifa

Former Member
0 Kudos

Hi,

Juste an other detail :the form don't appear at all

Haifa

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

The data navigation should be defined in your UDO form. Have a look at the

UDO Form Generator tool: it generates a form in XML that displays your UDO

and that enables navigation.

This tool is part of B1DE. You can download this package on Business One SDK

Tool here on SDN.