Need a special offer?Find out if your project fits.
+

prevent row from displaying as a filter

Answered
Michael T asked on August 14, 2020

Can we prevent a row from displaying as a filter? (while still displaying other filters)
If it is possible, could you please provide an example? 
If it isn't possible to prevent a filter from showing, perhaps adding 'active: false'  to an object on the Slice Object -> reportFilters array would be a nice way to do it? it would be similar to how measures can have  'active: false'

e.g. SliceObject["reportFilters"] = [{ ... , "active": false}]
Thank you!

3 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster August 14, 2020

Hello, Michael,
 
Thank you for reaching out to us.
 
In case your requirement is to hide the report filters area, we recommend using the showReportFiltersArea property of the Options Object. Please see an example demonstrating the usage of the described property.
 
If you need to restrict the filtering of the specific field placed on the grid (in columns or in rows), please use the filters property of the Mapping Object. It allows enabling and disabling the UI filters for a specific hierarchy. Please see an example we have prepared. It demonstrates disabling filtering for the "Destination" field.
 
Please let us know if our suggestions work for your case.
In case our assumptions about the required functionality are not correct, please provide us with additional details (for example, screenshot) about the desired result.
 
Kind regards,
Illia

Public
Michael T August 14, 2020

Thank you for the answer to my question.
I am having trouble with this method. In the mapping field, I have Date, being parsed
and the measures are Date.Year, Date.Month, Date.Day.
filters: false doesn't seem to work in this situation for stopping the filter. e.g. I may want, for example to just stop the Date.Year filter. Do you have any further suggestions?
 
Thank you,

"Date": {
"filters": false,
"type": "date",
"caption": "Date"
},
Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster August 14, 2020

Hello,
 
Thank you for your feedback.
 
Concerning your question about partial disabling of the filtering for the date data type, we want to explain that it is not possible in the current version of Flexmonster.
Filtering for such a field can be disabled only for all parts of the date simultaneously.
 
Please contact us in case other questions arise.
 
Best regards,
Illia

Please login or Register to Submit Answer