Atozed Forums
IWAppFormProcessParams - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: IWAppFormProcessParams (/thread-2578.html)



IWAppFormProcessParams - Lorbass - 11-30-2021

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!


RE: IWAppFormProcessParams - Jose Nilton Pace - 11-30-2021

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;