on 04-03-2017 4:02 PM
Is there a specific UI5 related event or method to detect when the user moves away from a View, or changes view focus?
not sure about the view, but you can check by adding a browser event(method available for all ui5 controls to add a browser event).
the event will be mouseleave:
https://developer.mozilla.org/en/docs/Web/Events/mouseleave
maybe be try adding it for the sap.m.page..
Best Regards,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what's your point?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have two Views, with the first view containing a table, of which when a row is selected, navigation is done to move to the second view.
The second view can be bound to the global model using the XML, like so:<Table items="{GM>/Contact/Insurance}" ...
However, when inserting, deleting and editing the table, all the functionality of this is handled via functions within the View controller. Therefore, I believe I need to retrieve the data from the global model in the controller, Therefore create another model from this and bind it to the view table, and have the XML binding show <Table items="{/}"...
Is that correct?
If so, once I move away from this view, how do I put the data back in the global model, if I can't detect moving away from the view?.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.