Get Free Trial

Issue with custom filter buttons and hierarchies typed as 'datetime'.

Travis Bean asked 6 days ago

I’m implementing custom filtering buttons on our UI and using the built-in openFilter() method on the flexmonster instance — whenever I pass a hierarchyUniqueName from a hierarchy thats typed as ‘datetime’ the flexmonster filter modal does not open up. All other types work as intended. We are using version 2.8.27. 

5 answers

Solomiia Andrusiv Solomiia Andrusiv Flexmonster 5 days ago

Hello, Travis!
Thank you for contacting us.
We could not reproduce the described behavior of openFilter() API call on our side. 
Here is a JSFiddle sample with opening the filter pop-up for the datetime field: Could you please modify this example to make your case reproducible?
Looking forward to hearing from you.

Travis Bean 5 days ago

Good Morning, Solomiia!

We were able to reproduce the behavior here:

Please let us know what our next steps would be, thank you!

Travis Bean

Nadia Khodakivska Nadia Khodakivska Flexmonster 4 days ago

Hello, Travis,

Thank you for providing us with the sample.

Please note that to use the openFilter() API call, you should define the necessary fields in the columns or rows sections of the Slice Object. For example,

slice: {
"rows": [{
"uniqueName": "Country"
"uniqueName": "Datetime"
"columns": [{
"uniqueName": "[Measures]"
"measures": [{
"uniqueName": "Price",
"aggregation": "sum"

You are welcome to check the following JSFiddle for reference: 

Please let us know if it works for you. Feel free to contact us if other questions arise.

Kind regards,

Travis Bean 4 days ago


Thank you! That solved the issue. We were using showDefaultSlice = true; but once we set it to false and passed in a slice with the columns we wanted filtering on everthing worked. 
Travis Bean.

Nadia Khodakivska Nadia Khodakivska Flexmonster 1 day ago

Hello, Travis,

Thank you for the feedback.

We are glad to hear that it works for you.

As always, you are welcome to write to us in case further questions arise.

Kind regards,

Please login or Register to Submit Answer