📚 SAP Business One SDK Help

GeneralService Object Members
See Also  Overview 

Public Methods

Public Method AddAdds a row to the database table of the current UDO.

The data for the row is contained in the GeneralData object passed to the method.

Public Method CancelCancels a row in the database table of the current UDO.
Public Method CloseCloses a row in the database table of the current UDO.
Public Method DeleteDeletes a row in the database table of the current UDO.
Public Method DoCommandDoCommand
Public Method GetByParamsGets a row from the database table of the current UDO.

The row is specified by passing its key to the method.

Public Method GetDataInterfaceCreates an empty data structure for use with the GeneralService.
Public Method GetDataInterfaceFromXMLFileCreates an object from an XML file.
Public Method GetDataInterfaceFromXMLStringCreates an object from XML.
Public Method GetListReturns the keys for all the rows in the main table for a specific UDO.

For example, if the UDO MealOrders was linked to the user-defined table @SM_OMOR table, and the service was instantiated for the MealOrders UDO, then this method would return the keys for all the rows in @SM_OMOR.

Public Method InvokeMethodExecutes the InvokeMethod method of your UDO's custom business implementation DLL. 

The InvokeMethod has the following signature:

    TCHAR* InvokeMethod(CSboBusinessObject * refObj, const TCHAR* sInput)

The CSboBusinessObject object receives data from the GeneralData parameter of this method, which represents a record of this UDO.

The TCHAR object receives the string from the InvokeParams parameter of this method. You can use the InvokeMethod method as a dispatcher to other methods in your DLL, and use this string to determine how to dispatch to other functions in the DLL.

Public Method UpdateUpdates an existing row in the database table of the current UDO.

The data for the row, including the key of the row to be updated, is contained in the GeneralData passed to the method.

See Also