on 2007 Apr 26 5:54 PM
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
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.