on 12-24-2020 12:28 PM
Hi All.
I have two questions regarding Cross Application Navigation.
Question 1:
Application 1 - Which is having Display view (Smart Filter and Smart Table) and Detail View (Object List Page) Application 2 - Which is having Display view ( FilterBar) and Detail View (Object List Page).
So I have enabled the cross application navigation between these two applications and able navigation successfully.
Scenario 1:
In my application 1, i selected some filters and search the the smart table. then if i click the table item, it is navigating to object detail page. if i press back from object detail page it is navigating again to SmartTable(view 1) and i can see the filters i selected on the smart filter bar. It is working as expected.
Scenario 2:
In my application 1, i selected some filters and search the the smart table. then if i click the table item, it is navigating to object detail page. From this Detail view, if i click another button it should navigate to the Second Application Detail View with some Parameters. it is also navigating perfectly.
Then if i press the back button from the Second App, it is navigating back to Application 1 Detail view with same context. Here it is getting refreshed as i enabled some service call in the Object Route matched function. then if i press the back it is navigating to Application 1 First View(Smart Filter and SmartTable). Here i do not see any selected filters/Variant . it is refreshed.
How to handle the Navigation back properly when i coming back from another app in sapui5?
Question 2:
I have entered some input in the Text Area in my Application 1 Detail View. then i go for cross navigation to second application . Then if i come back from my second app to my application 1 detail page, i need to keep the value what i entered in the text area. How to maintain it?
Thanks,
Regards,
Jayakrishnan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you jun.wu5 .
It is working. But Still i am facing one issue. In my case,
I need to navigate from Detail page to second app detail page. SO when i press the back button of FLP Screen or my own back button it is routing to my master page and going to detail page of the First App.
even i copied the detail page URL with pattern and try to paste in the next tab it is also behaving in the same way. When i debug, i see the onRouteMatched of my Master Screen triggered then onRouteMatched function of my Detail Screen is triggering.
Example:
App 1 :
Home Screen with route name = home and pattern = " " .
Detail Screen with route name detail and pattern is detail/{ID}.
App 2:
Home Screen with route name home and pattern " ".
Detail Screen with route name detail pattern is detail/{Id}.
My Scenario:
Detail Press Event from App1 - Detail Page:
App1 - detail/{ID} --------> App2 detail/{Id}.
Back button event:
App2- detail/{Id} --------------> home(App1) -------------> detail/{ID}(App2).
it is not appearing for more time but evidently it is displaying the Home and navigating to Detail.
Is this a normal way or should i need to add any code to not behave like this.
Thank you,
Regards,
Jayakrishnan.
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
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.