2025 Feb 05 1:33 PM - edited 2025 Feb 05 1:34 PM
Hello SCN community,
I am working with an SAPUI5 Analytical Table bound to a Node.js backend service using analytical binding, and everything is working as expected with the default GET request. However, I now need to change the default behavior to use a POST request instead of GET in order to send additional data along with the request.
var oModel = this.getView().getModel("analyticalModel");
oModel._request = odataModelRequest(oModel._request, this._waitODataLongReq.bind(this));
var oBindingParams = {
entitySet: "dynamicEntity",
useAnalyticalBinding: true,
initiallyVisibleFields: '',
useBatchRequests: false,
provideGrandTotals: true,
hasTotaledMeasures: true,
provideTotalResultSize: true,
reloadSingleUnitMeasures: true,
sOperationMode: sap.ui.model.odata.OperationMode.Server,
autoExpandMode: 'Sequential',
custom: { // Adding custom query parameters here
params: sParams
}
};
let fecBindcontext = {
model: oModel,
path: "/dynamicEntity"
};
var spath = `/storage/sys/${this._UUID}/se11/${this.tables}/dynamicEntity`;
var oTableBinding = new sap.ui.model.analytics.AnalyticalBinding(oModel, spath, fecBindcontext, [], [], oBindingParams);
oTable.setModel(oModel);
My Questions:
Any help or examples would be greatly appreciated!
Thank you in advance for your support.
Request clarification before answering.
User | Count |
---|---|
64 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.