Skip to Content
Former Member
May 23, 2014 at 07:49 AM

User Defined Object Child Item Updating


Hi Team,

May i know how can i update the particular child item in UDO tables.

In Between, i will check if existing item is not found, i will add a new child

If IsNewItem Then

'Add Child

oChild = oAF_SPL1.Add


'Update Child

oGeneralParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)

oGeneralParams.SetProperty("DocEntry", strCode)

oGeneralData = oGeneralService.GetByParams(oGeneralParams)

oChild = oGeneralData.Child("CHILDTABLEANAME")

oChild.Item(LineNum).SetProperty("FIELDNAME", VALUE)

End If

Currently, i am using query to retrieve the lineId from child table. Does SDK able to pass in any additional params instead of LineNum to set current line of child item to update.