on 01-29-2010 4:13 PM
¿Es Posible Eliminar o cancelar una línea de una tabla UDO documento Mediante El objeto DI?
Hola Sergio,
Eso es un forun en Ingles.
Si, es posivel. Tienes exemplos en fichero de ayuda de SDK.
Cumprimentos,
Vítor Vieira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sergio,
Instantiate the UDO you need to work with
Dim oCompanyService As SAPbobsCOM.CompanyService = oCompany.GetCompanyService
Dim oGeneralService As SAPbobsCOM.GeneralService = oCompanyService.GetGeneralService("TABLE_HEADER")
Dim oGeneralData As SAPbobsCOM.GeneralData = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)
Dim oGeneralChildren As SAPbobsCOM.GeneralDataCollection
Dim oGeneralParams As SAPbobsCOM.GeneralDataParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)
...
oGeneralParams.SetProperty("DocEntry", "100001") ' 100001 is the document number
oGeneralData = oGeneralService.GetByParams(oGeneralParams) 'Retrieve the object to memory
oGeneralChildren = oGeneralData.Child("TABLE_ROWS")
For i As Integer = 1 To oGeneralChildren.Count
oGeneralChildren.Remove(0) ' Remove all the rows.
Next
oGeneralService.Update(oGeneralData) 'Update the object.
...
Regards,
Vítor Vieira
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.