You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is it me or anyone else had this issue.. Why the proxy extraParams are not sent to server?
Note that I'm 100% sure extraParams is there but the request sent to server did not include that extraParams.
for the sake of clarity this is my extraParams after calling mystore.getProxy().extraParams
oh sorry for not looking at your code before spitting out some question..
after inspecting how read request on this proxy constructed, looks like there is missing pieces in there. the included parameter is sorter, grouper, and paging params only.
// Remote sorters
if (sorters && sorters.length > 0) {
data.sort = [];
for (i = 0; i < sorters.length; i++) {
data.sort.push({
property: sorters[i]._property,
direction: sorters[i]._direction
});
}
}
// Remote groupers
if (groupers && groupers.length > 0) {
data.group = [];
for (i = 0; i < groupers.length; i++) {
data.group.push({
property: groupers[i]._property,
direction: groupers[i]._direction
});
}
}
// Paging params
data.page = operation._page;
data.limit = operation._limit;
data.start = operation._start;
so then I add code below to make sure extraParams is included in read request
// extraParams
var extraParams = operation._proxy.extraParams;
for (var key in extraParams) {
if (extraParams.hasOwnProperty(key)) {
data[key] = extraParams[key];
}
}
Hi, is it me or anyone else had this issue.. Why the proxy extraParams are not sent to server?
Note that I'm 100% sure extraParams is there but the request sent to server did not include that extraParams.
for the sake of clarity this is my extraParams after calling
mystore.getProxy().extraParams
{nama: "kecap", kode: "l"}
but it only send this request to server
The text was updated successfully, but these errors were encountered: