Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

How to update the Content of a View while navigating and using Global paramters in SAPUI5

$
0
0

Good morning everyone,

 

I have been struggling with a problem since a couple of days. It is about updating a View using Global parameters just after the navigation process. In order for you to better understand my problem, let me explain my scenario. I developed an application which has as root element the App control. The App control now adds new Views as Pages using addPage() and performs the navigation using its methods "to" and "backToPage". In total I have three Views. The FIRST View is just a StandardTile, when the user clicks on it he navigates to the SECOND VIEW which will display a Table using the sap.ui.table.Table control. This table calls a Gateway OData Service to retrieve the business data using a function import. When the user now clicks on a table row, he will navigate to the THIRD View which will display another set of data using sap.ui.table.TreeTable based on some key parameters(two parameters) on the PREVIOUS SELECTED row which I store as GLOBAL OBJECTS  after extracting them from the Row Binding Context. So the TreeTable control will call another function import from the SAME Gateway OData Service with these passed TWO GLOBAL PARAMETERS. The navigation is actually WORKING but my PROBLEM is that when I navigate back from the THIRD VIEW to the SECOND VIEW and I choose ANOTHER ROW, the DATA displayed in the THIRD VIEW(TreeTable) are the ONES of the PREVIOUS SELECTED ROW. The GLOBAL parameters are UPDATED BUT the method "createContent" of the THIRD VIEW is NOT called again, I mean it is the OLD content that is still displayed. How can I solve it? I thought about DESTROYING the View before I navigate back, it did NOT work. How to FORCE the application to Create the VIEW content again, I mean going through the createContent again? Please be TOLERANT with me, I am still a LEARNER. Have a great day and stay blessed


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>