on 12-09-2016 5:14 PM
The new version of SAPUI5 1.40 or 1.42 has issue when using the filters to read data e.g.
It will return this error:
Invalid Parameter Type Used At Function ‘eq’ (Position 13)
Because of missing quotes for the filter value in the URL in the oData HTTP request:
$filter(Whsenumber eq 110 and TransOrd eq 2499125)
So if i try 2nd time read for same code without any changes it will work because the quotes get added without known reason:
$filter(Whsenumber eq '110' and TransOrd eq '2499125')
The issue happen sometimes and it is hard to know when will it happen.
Please help me it is causing many production issues?
I used jQuery.sap.delayedCall UI5 API method to wrap the oData read call as below:
jQuery.sap.delayedCall(500, this, function() {
//oData GET request
oModel.read("/Path",{
});
});
Then I moved the oData response results to a json model bound to the control.
This UI5 bug caused a lot of Prod issues for customer. and the funny part is the customer using the SAP Cloud Portal so UI5 is always the updated latest version 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi momen,
Super....Exactly the problem i am facing....How did you add the time wait ? Also in my case the strange part is it works on Dev but not on Acceptance.
Please advice.
Br
Nilesh Puranik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
THE WORK AROUND IS TO ADD HALF SECOND WAIT TIME DELAY BEFORE CALLING THE FUNCTION TO CALL ODATA GET.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I FOUND WORK ARROUND THIS ISSUE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.