on 01-11-2007 9:52 AM
Hi friends,
I have created Document and DocumentLine Tables ,using this i have created UDO .
I want to insert values to these tables using DI-API ?
Thanks
V.Rangarajan
Did you get any help you share??
How did you do it??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nikhil / Quentin -
sorry but your code will not add a new object, will just add a new row in the
user table where the object resides. This is a huge difference. There is more
in the user object than just user tables and your code will not do all it needs
to be done in order to add a new object.
As Frank said, this feature is not yet available on B1 SDK
Sorry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ranga,
you should try this code for insert values in your tables.
SAPbobsCOM.UserTable UDT;
UDT = oCompany.UserTables.Item("table");
UDT.Code = value;
UDT.Name = value;
UDT.UserFields.Fields.Item("field 1").Value = value;
UDT.UserFields.Fields.Item("field 1").Value = value;
UDT.UserFields.Fields.Item("field 1").Value = value;
int iErr = UDT.Add();
Hope it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ranga
If it is user defined tables, I think you can use SQL with RecordSet object.
Somethings like :
oRecordSet.DoQuery("select * from [MyDatabase].dbo.[@MyUserTable] WHERE Condition");
Hope it helps
Quentin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
105 | |
14 | |
10 | |
5 | |
4 | |
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.