on 2023 Jun 15 9:03 AM
Hi,
I need to remove some of the options under Define Conditions tab for a Search Help.
I read this should be done using the method setExcludeRangeOperations, but where exactly do I need to code this?. Is it in onInitSmartFilterBarExtension? and if so what is the control I need to run this method for?.
Thanks,
Javier
Request clarification before answering.
You have not mentioned your UI5 version.
Here is a snippet that demonstrates how it should work and running on latest UI5.
https://jsfiddle.net/86forhdw/
Have in mind that you need these properties
supportRanges: true,
supportRangesOnly: true
So that Conditions tab is rendered.
Also you don’t need
maxExcludeRanges: 0
unless you want to remove the Exclude group of operators from the drop down. This is deprecated property that was useful with the old VHD design, before version 1.84. There it was possible to limit the number of exclude/include conditions separately. For instance you want to have only 5 include and 3 exclude. With the newer (current) design this is not possible, but you could limit the total number of conditions using maxConditions property.
And last but not least getControlByKey() is deprecated and should not be used. Manipulating directly the internal controls' instances of Smart Filter Bar from the application caused many problems with the logic of Smart Filter Bar and we had to discourage usage of this method. Yet, for the moment unfortunately we don’t provide such official API to configure the Value Help Dialog operators. But as we see the need for it, most probably would change that in futre. Just follow the What's new section of SAPUI5.
hope this helps,
Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.