on 09-05-2018 11:00 AM
I have several UI5 Table controls bound to the same model property. The tables are not necessarily rendered already (using lazy loading).
In a validation step, I'm doing some checks on the model's values. If I found an error, I want to invalidate all table cells that contain the erroneous value. Is there a way to find all current UI5 controls that are bound to a certain bindingcontext (Model + path)?
The best way is use the message manager. You may not be able to find a lot blogs on that, but going with that approach is a lot better.
https://blogs.sap.com/2017/03/26/show-bapi-warning-messages-in-ui5-without-throwing-exceptions/
There is reusable js module also written for that:
https://blogs.sap.com/2015/11/01/generic-sapui5-form-validator/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both approaches require the UI5 control to be instantiated already.
Perhaps some more constraints:
usually it is a bad idea to access the ui control.
in most case, you can just manipulate the data to achieve what you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.