OnBeforeRender

<< Click to Display Table of Contents >>

Navigation:  Classes > TIWServerControllerBase > Events >

OnBeforeRender

This eventis triggered before IntraWeb renders the next form to be shown to the user. You can use this event to show another form to the user, instead of the form to be shown.

 

procedure TIWServerController.IWServerControllerBaseBeforeRender(

 ASession: TIWApplication; AForm: TIWBaseForm; var VNewForm: TIWBaseForm);

begin

 if not UserSession.CheckFormSecurity(AForm.ClassName) then begin

   VNewForm := TLoginForm.Create(WebApplication);

   TLoginForm(VNewForm).FormToRequestAuth := AForm.ClassName;

   AForm.Release;

   AForm := Nil;

 end;

end;

 

SIGNATURE=IWServerControllerBase.TIWServerControllerBase.OnBeforeRender

 

ETYPE=Event

 

Declaration:

Delphi:

published property OnBeforeRender: TOnBeforeRenderEvent;

C++:

__published: __property TOnBeforeRenderEvent OnBeforeRender;

 

Description: This is OnBeforeRender, a member of class TIWServerControllerBase.