|
<< Click to Display Table of Contents >> Navigation: Forum > IWAppFormProcessParams |
11-30-2021, 03:04 PM:
Hello,
when exactly does IWAppFormProcessParams fire?
procedure TFormA.ButtonAsyncClick (Sender: TObject; EventParams: TStringList);
var
F: TIWAppForm;
begin
F:=TFormB.Create(WebApplication);
F.Params.Add('AName'+F.Params.NameValueSeparator+'AValue');
F.Show;
end;
In Form B neither IWAppFormProcessParams fires, nor are the parameters available in IWAppFormRender:
procedure TFormB.IWAppFormRender(Sender: TObject)
var
S: string;
begin
S:=Self.Params.Values['AName']; (* returns an empty string *)
end;
Thanks for quick reply!
11-30-2021, 04:58 PM:
Hi, try this: (not tested, ok).
Code:
procedure TFormA.ButtonAsyncClick (Sender: TObject; EventParams: TStringList);
begin
with TFormB.Create(WebApplication) do begin
Params.Add('AName' + Params.NameValueSeparator + 'AValue');
Show;
end;