Atozed Forums

Full Version: IWAppFormProcessParams
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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;