Atozed Forums
IW15.1.5 TIWCallBacks.Invoke not passing query string parameters - 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: IW15.1.5 TIWCallBacks.Invoke not passing query string parameters (/thread-1298.html)



IW15.1.5 TIWCallBacks.Invoke not passing query string parameters - jeroen.rottink - 10-07-2019

I come from IW15.0.23 where I had a working IW app using IWBS and templates to show a bootstrapTable with server-side search.
For this to work the client sends back the search string as a query string parameter. In IW15.1.5 this is not working anymore.
Debugging this I see the callback is called by TIWCallBacks.Invoke() and this method should provide the params by copying it from LForm.Params. But this property is empty.

aRequest.Params is filled with the correct params...


RE: IW15.1.5 TIWCallBacks.Invoke not passing query string parameters - Alexandre Machado - 10-09-2019

Can you please provide a working demo?

EventParams are copied from LForm.Params and passed to the callback function in every case, except if your callback function doesn't have parameters (a reference to procedure with no params)


RE: IW15.1.5 TIWCallBacks.Invoke not passing query string parameters - jeroen.rottink - 10-09-2019

Yes, I'll create an example. Hopefully today.


RE: IW15.1.5 TIWCallBacks.Invoke not passing query string parameters - jeroen.rottink - 10-10-2019

I send you an email with download link to an example.


RE: IW15.1.5 TIWCallBacks.Invoke not passing query string parameters - Alexandre Machado - 10-11-2019

Please test the fixed version of IWBSRestServer.pas (attached). It should work just like the previous version now.

This fix will be also available in our next release.


RE: IW15.1.5 TIWCallBacks.Invoke not passing query string parameters - jeroen.rottink - 10-12-2019

Hi Alexandre,

I tested the fix and it worked.