TISAPIActionItemContents - Events - Methods - Properties
Request handler for predefined request path
Description
Put these components into the dispatcher-module at design time and the dispatcher calls them automatically, when the request path matches the actionitem's PathInfo .
Contents - TISAPIActionItem - Properties - Methods
OnAction
Request handling eventOnCheckUserRightsDelphi declaration
property OnAction: TOnNewRequestEvent read FOnAction write FOnAction;
C++ declaration
__property TOnNewRequestEvent OnAction={ read=FOnAction, write=FOnAction }
Description
Set Handled to true, if the request is handled.
Checking user rights for this actionDelphi declaration
property OnCheckUserRights: TFRChItemUserRights read FOnCheckUserRights write FOnCheckUserRights;
C++ declaration
__property TFRChItemUserRights OnCheckUserRights={ read=FOnCheckUserRights, write=FOnCheckUserRights }
Description
This event will be called before the OnAction event. Set Accept to FALSE, then the request will be rejected.
Contents - TISAPIActionItem - Properties - Events
~TISAPIActionItem
DestructorCreateC++ declaration
__fastcall virtual ~TISAPIActionItem(void)
Description
You usually never need to free TISAPIActionItem objects by yourself.
ConstructorDestroyDelphi declaration
constructor Create(AOwner: TComponent);
Description
You usually never need to create TISAPIActionItem objects by yourself.
DestructorDoActionDelphi declaration
destructor Destroy;
Description
You usually never need to free TISAPIActionItem objects by yourself.
Internal request handlerTISAPIActionItemDelphi declaration
function DoAction(Request: TFRISAPIRequest; Response: TFRISAPIResponse): Boolean;
C++ declaration
bool __fastcall DoAction(TFRISAPIRequest *Request, TFRISAPIResponse *Response)
Description
Called by the dispatcher. Forces the OnCheckUserRights and OnAction events.
ConstructorC++ declaration
__fastcall virtual TISAPIActionItem(Classes::TComponent *AOwner)
Description
You usually never need to create TISAPIActionItem objects by yourself.
Contents - TISAPIActionItem - Methods - Events
Enabled
Enable/disable using this actionitemPathInfoDelphi declaration
property Enabled: Boolean read FEnabled write FEnabled default true;
C++ declaration
__property bool Enabled={ read=FEnabled, write=FEnabled, default=1 }
Description
Default enabled.
Request path to which this actionitem must responseRequestDelphi declaration
property PathInfo: AnsiString read FPathInfo write FPathInfo;
C++ declaration
__property System::AnsiString PathInfo={ read=FPathInfo, write=FPathInfo, nodefault }
Description
Only the first part of the path (Request->PathList->Strings[0]) is used to find the appropriate actionitem.
Currently active request objectResponseDelphi declaration
property Request: TFRISAPIRequest read FRequest;
C++ declaration
__property TFRISAPIRequest *Request={ read=FRequest, nodefault }
Currently active response objectDelphi declaration
property Response: TFRISAPIResponse read FResponse;
C++ declaration
__property TFRISAPIResponse *Response={ read=FResponse, nodefault }