on 07-03-2017 10:08 AM
Hello experts,
I am making a demo of SmartFilterBar. I am having a smart filter and a smart table which works fine. And I want to specify the filter programmingly. I am doing it this way:
filter.setFilterDataAsString('{"CompanyName":{"value":"sap","ranges":[],"items":[]}}', true);
But after that,
I also tried method setFilterData the same way, but got same result.
Could anyone help?
Thanks in advance
Ray
I think you have to add ControlConfiguration for every key you want to edit dynamically. In your case add to it:
<smartfilterbar:ControlConfiguration key="CompanyName" hasValueHelpDialog="false"
visibleInAdvancedArea="true" visible="true" />
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi XG Liu,
Could you share your project on Github for us to take a look or debug?
Smart components work best while using Odata v4 with annotations. So you don't need to code filters manually.
However it is possible to create a Smart Table app with filters manually. But you will have to take care of a lot of stuff manually.
I have found that each time I need to deal with a SmatTable app I really need to dig deep into the debugger to understand what it needs to be done.
Regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.