TAstaActionItem
Applies to
TAstaBusinessObjectsManager
Unit
AstaMethodManager
Declaration
type TAstaActionItem = class(TCollectionItem)
Description
TAstaActionItems are the actual methods of the TAstaBusinessObjectsManager
and appear in TAstaClientDataSets as ServerMethods.
Each ActionItem requires a TDataSet either through a TAstaProvider or any TDataSet descendent on the server. SQL is not required and TTables can be used. Any persistent field properties of the attached TDataset can be streamed down to the client if the SendFieldProperties property is set to True (default).This includes calculated fields.
Parameters can be defined for the TAstaActionItem and TAstaClientDataSets will see these parameters whenever the ServerMethod name is set, either at runtime or design time. If a TAstaProvider is used then the parameters of the dataset that the TAstaProvider is connected to can be used if the GetParamsFromProvider property is set to true. TAstaProviders can transmit their parameters if they are TParams OR the the Param Helper events are coded.
When a TAstaClientDataSet is opened using a server side method, the OnActionEvent of the TAstaActionItem is fired and the parameters from the TAstaClientDataSet are transmitted to the server. Any use of Params must be coded by you in the OnActionEvent either any setting of server side TDataSet.Params property or the updating of any returning parameters to the client of type ptOutput, ptResult, ptInputOutput.