![]() |
|
IWAppFormProcessParams - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (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); |