Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWAppFormProcessParams
#1
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!
The way to success is always under construction ... but i see a light at the end of the tunnel  Idea Big Grin
Reply
#2
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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)