on 2019 Aug 06 1:39 PM
I've got the following problem with our Fiori Elements apps: After upgrading on premise from UI5 1.52 to 1.60, all Fiori Elements Apps containing a chart in the Object Page (List-Report Apps) stopped working properly. The behavior is as follows:
1. Start App -> List -> Select Entry -> Navigate to Object Page -> Render Chart correctly -> Navigate Back to List Page
2. Select another entry -> Navigate to Object Page -> No Chart is rendered anymore. Instead of I can find the following error message in the console.
Assertion failed: The length of the given section must be positive greater than 0.
I've tested our apps against different versions of UI5 and up to 1.58.x everything works fine. Starting from 1.60 the issue appears.
Can anybody help me out with some hints and knowledge what has changed from 1.60 and up? Thanks
Request clarification before answering.
Hi Christian,
After tracing the requests to the backend system we noticed that they included '$inlinecount'.
Our service is developed in SEGW so we added this code to the end of the respective get_entityset method:
IF io_tech_request_context->has_inlinecount( ) = abap_true.
DESCRIBE TABLE et_entityset LINES es_response_context-inlinecount.
ELSE.
CLEAR es_response_context-inlinecount.
ENDIF.
This solved the graph rendering.
Best Regards,
Radovan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Radovan,
thanks for sharing your insights. I've implemented the inlinecount but without changes in the app behavior. After that I took a look into the app and noticed, that for the 1st navigation to the chart view two calls were sent to the backend. Starting with the 2nd navigation (select another Item in the master page) there is only one call to the backend. The 2nd one (for the chart itself) does not happen anymore.
Inbetween we started leaving Fiori Elements for those apps. A rewrite that includes more features than our FE app took me less than a day.
Best regards,
Christian
User | Count |
---|---|
76 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.