on 09-22-2014 2:49 AM
Dear Expert's,
I have an JS/XML application with two level navigation. I am trying to change the value of second page, for every time i call it. As per the break point's that i set, it goes through createContent, Init and Before/After rendering methods only once and none of the page method's get's called again.
Please advise, if there is a way that i can try change the values of the second screen element's, by writing code in any method's ? Should i remove the page from the 'App' and add it again to make these method's execute ?
Thanks,
Seeker.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SAP Seeker,
As Dennis noted, model would be the correct way in this case. But you could also use page.invalidate() to force rerendering of the Page.
Regards,
Kimmo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using sap.m library, you can use the events fired by page.
SAPUI5 SDK - Demo Kit : Events fired on the Pages
On the other hand, you can change the values of the second screen elements using the method sap.ui.getCore().byId("idElement")
Call it when you call the methods to navigate between the screens.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lauffer,
Thanks for your reply. To get the value byId through Core, atleast one of the method's within the page needs to be executed. But, the issue is, the second page is already added using App element and it never get's loaded again. Since it is already loaded, none of the method's gets executed. Any solution possible ?
Thanks,
Seeker.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.