For what I’m trying to do, I ended up having to set the URL of the datatable to null prior to making the request, otherwise, the URL on “loadNext” gets ignored.
My goal was to have a “global” filter that can be applied alongside individual column filters. When the global filter is selected (using a menu component), I am calling loadNext
and attempting to append the selected status from the global filter to the URL params list. This extra parameter is getting ignored because once the URL is set on the datatable, it uses that as the base URL and then builds up the filter/sorting params afterwards. It would be nice if “loadNext” used the URL that was provided as the base URL rather than completely ignoring it.
My “hack” was to do this:
`
table.data.url = null;
table.loadNext(200, 0, null, buildUrl(), true);
`
This forces it to reset the URL every time which is fine for me, but I kind of assumed there was an easier way to catch and modify the URL before sending it to the server. All I’m trying to do is append a query string parameter before it gets sent…