On Before Execute
From Morfik Wiki
This event is fired by a Form (or Report) on the server after the Form (or Report) is created and before the process of preparing response for a request is begun.
- Where
Server
- Sample code
FX Code
Procedure Form1.WebFormBeforeExecute(Sender: TWebDocument; Var PContinue: Boolean); Begin If ValueId <> '' Then SQLFilter := '"testId" > ' + IntToStr(ValueId.ToInteger + 5); End;
| BX Code |
|---|
Published Message Sub WebFormBeforeExecute(Sender As TWebDocument, ByRef PContinue As Boolean) If ValueId <> "" Then SQLFilter = """testId"" > " & IntToStr(ValueId.ToInteger() + 5) End Sub |
| CX Code |
|---|
published message void WebFormBeforeExecute(TWebDocument Sender, ref Boolean PContinue) { if (ValueId != "") SQLFilter = "\"testId\" > " + IntToStr(ValueId.ToInteger() + 5); } |
- Applies to
Form, Report

