Description
Updates an existing dimension.
The data for the dimension, including the key of the dimension to be updated, is contained in the Dimension object passed to the method. To update a dimension, you must first retrieve it using the GetDimension method.
Syntax
Parameters
Example
| Updating a dimension (Visual Basic) | Copy Code |
|---|
oCmpSrv = oCompany.GetCompanyService()
oDIMService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.DimensionsService)
oDIMParams = oDIMService.GetDataInterface(SAPbobsCOM.DimensionsServiceDataInterfaces.dsDimensionParams)
oDIMParams.DimensionCode = 1
Try
oDIM = oDIMService.GetDimension(oDIMParams)
Catch ex As Exception
Return
End Try
oDIM.IsActive = SAPbobsCOM.BoYesNoEnum.tYES
Try
oDIMService.UpdateDimension(oDIM)
Catch ex As Exception
MsgBox(ex.Message)
End Try |
|
See Also