10-09-2019, 09:51 AM
(This post was last modified: 10-09-2019, 10:15 AM by jeroen.rottink.)
Hi Alexandre,
This one is easy to reproduce.
Now I get an error saying the callback method is not registered. This was working fine in IW15.0.23
Hi Alexandre,
The issue you describe can also be the case in my application but I have to check further.
This one is easy to reproduce.
- Open demo CustomAjaxCall and run it. It should function as expected.
- Create constructor TIWForm2.Create()
- Move the statement WebApplication.RegisterCallback from TIWForm2.IWAppFormCreate to this new constructor and run the application again.
Code:
constructor TIWForm2.Create(AOwner: TComponent);
begin
inherited;
// If we want to call IWForm2.DoMyAjaxFunc, then we have to register it as a Callback
WebApplication.RegisterCallBack(UpperCase(Self.Name) + '.DoMyAjaxFunc', DoMyAjaxFunc);
end;
Now I get an error saying the callback method is not registered. This was working fine in IW15.0.23
Hi Alexandre,
The issue you describe can also be the case in my application but I have to check further.