Get Free Trial
Get Free Trial

Disable fileds in reportFilters

Resolved
Jose Antonio Veintimilla asked on November 14, 2019

Good Morning.
I need to put fields disabled or not visible in reportFilters (pages). The idea is that they do not appear on the pivot but are shown in the selection detail (double click on cell).
Thank you.

6 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 14, 2019

Hello, Jose,
 
Thank you for your question.
 
We would like to inform you that it is possible to hide report filter controls using the following structure:

options: { 
grid: {  
showReportFiltersArea: false
}
}

The code above has to be embedded in the report object.
You can learn more about an options object and its properties by the link: https://www.flexmonster.com/doc/options/.
 
Feel free to contact us in case any questions occur.
 
Kind Regards,
Illia

Public
Jose Antonio Veintimilla November 15, 2019

Thank you.
With that solution I deactivate the entire row of filters. My intention is to show certain fields to be able to filter through them and disable the rest.
Can you help me with this issue?

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 15, 2019

Hello, Jose,
 
Thank you for your feedback.
 
Our team would like to kindly ask you to provide a more detailed description of your needs.
If we have correctly understood you, your desire is to hide specific reported filters from the reported filters area, but make them visible on the drill through pop-up? (See a sample in the attachments).
 
If that is not what you want to achieve, please, provide more information or a graphical explanation of your needs.
 
Best Regards,
Illia

Attachments:
screen_1.jpg
screen_2.jpg

Public
Jose Antonio Veintimilla November 18, 2019

I need to mount exactly what you show in graph 2.

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 18, 2019

Hello, Jose,
 
Thank you for providing details.
 
You can hide desired filters through overriding CSS.
Each filter has its own data-h attribute with a unique value.
You can implement hiding using the code below:

a[data-h="n1"], a[data-h="n2"] { 
display: none !important;
}

n1 and n2 values are field indexes in report filters starting from 0.
 
Check out an example we made for you: https://jsfiddle.net/flexmonster/fy2Le5v7/.
 
We hope it helps.
You are welcome to contact us in case of any questions occurs.
 
Kind Regards,
Illia

Public
Jose Antonio Veintimilla November 18, 2019

Solved. 
 
Thank you.

Please login or Register to Submit Answer