on 07-19-2006 7:00 PM
Is there a way to get my business object (a UDO) back in the same manner as a B1 GetBusinessObject()? This way I could update the fields as needed.
I haven't used this feature myself. But in version 8.8 you have a DI API object called GeneralService that will allow you add and update UDOs.
But this feature is only available in SAP 8.8
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm on 2007 version...
If i'm not wrong i think you can use this code to access data from your tables..
Dim oUserTable as SAPbobsCOM.UserTable
oUserTable = oCompany.UserTables.Item("Res") '-- Res is your User Defined Table name
oUserTable.Code = "123" ' -- Default fields SAP provides can be accessed directly
oUserTable.Name = "Test"
oUserTable.UserFields.Fields.Item("U_LS").Value = "Test Data" '-- To access User Defined Fields.
oUserTable.UserFields.Fields.Item("U_Rb").Value = "Data2"
oUserTable.Add()
I think this code's suppose to work. But you can use it only after maiking the UDO.
Correct me if i'm wrong. I'm still new to B1
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can read the tables of your UDOs with SQL, this is
allowed by SDK development guidelines.
You cannot add / update / delete UDOs out of B1, sorry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am facing the same problem. Actually, we have created the code for access the UDO (select, updates, delete, etc).
This is very really odd. Does it make sense not to allow access UDOS as objects? It would be great allowing the GetBusinessObject() for the udos too.
Do you know if this will be fixed? or do you know the reason for this restriction?
Thank you very much in advance!
Regards,
Hello Gary,
Sorry to tell you that updating UDO is not supported by DI API now.
Sorry,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.