on 02-16-2016 10:33 AM
Hi All
Can we add a new child to existing UDO?
If yes how can we Update the existing UDO programmaticall
Hi Sheetal,
Try this:
UserObjectsMD oUserObjectMd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
if (oUserObjectMd.GetByKey("your object id"))
{
//made your changes
//Open a new child
oUserObjectMd.ChildTables.Add();
//Sets your child table
//oUserObjectMd.ChildTables.TableName = "Test"
if (oUserObjectMd.Update() != 0)
MessageBox.Show("Something wrong. Error: " + oCompany.GetLastErrorDescription());
}
Hope it helps.
Best regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.