on 2022 Aug 09 7:13 PM
I have a ui.Table that I want to filter by date, defaulting to six months in the past when the user opens the view.
Building the filter in javascript is easy enough, but I can't put the filter code in the view's init because the binding hasn't been created yet. Tying it to metadataLoaded isn't the right timing either. Is there a "bound" event somewhere that I'm missing in the documentation?
I tried putting the filter in the view XML, but I can't figure out how to put a dynamic date in the filter expression in the path, and the filter in XML doesn't support binding so I can't supply the "from" date that way.
So how can I filter the table using a dynamic date value without the user needing to trigger an event to cause it?
https://blogs.sap.com/2021/03/23/ui5-tips-use-of-binding-suspend/
you can follow this blog, initially suspend the binding, once you set the filter, you can resume the binding
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.