on 03-14-2016 1:13 PM
Hi Experts ,
i have a scenario to discuss here.
Scenario:
-inputs
Application type -FIORI & Placed at FIORI Launchpad
Chart used -Comparison chart with Tile
Data source- JSON Model
Views-XML View
Controller-JavaScript controller
we have created 2 application in similar manner but different data. applications are working fine individually.
Problem:
Once Application1 run and displayed correctly then user goes back to home screen, i.e main launchpad and click the second application(Application2), application runs but on the comparison chart keeps the 1st applications(Application1) data.
Assumption:
Browser history causing the problem.
Pasting images - Application 1 , Application 2 - problem image
Solution expected:
looking for a working code to clear the content of first comparison chart while running the 2nd application in the browser history.
Thanks In advance,
Sandeep
Hi Sandeep,
Here are some pointers:
Cache Buster for SAP Fiori - User Interface Add-On for SAP NetWeaver - SAP Library
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
You are using the JSON model, so model is already available locally.
Also I assume both model have same name , so it might be taking same value.
Some possible actions that I would consider :
1.Destroy the content of view on onExit method of both apps.
2. Giving two different model name
3. Check the console if there is some error that might have created the problem while rendering second application.
4. Check if you are setting the model in the global level ie into sap.ui.core (this should not be done while integrating into launchpad
Hi Sandeep,
below code will destroyContent.
onExit : function(){
this.getView().destroyContent();
}
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.core.mvc.View
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.