Get Free Trial

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

Answered
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

Public
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: https://jsfiddle.net/flexmonster/3n5172Lc/. Could you please modify this example to make your case reproducible?
 
Looking forward to hearing from you.
 
Regards,
Solomiia

Public
Travis Bean 5 days ago

Good Morning, Solomiia!

We were able to reproduce the behavior here: https://jsfiddle.net/sj8mwdh2/

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

Regards,
Travis Bean

Public
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: https://jsfiddle.net/flexmonster/Ltrn61wq/ 

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

Kind regards,
Nadia

Public
Travis Bean 4 days ago

Nadia, 

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. 
 
Sincerly,
Travis Bean.

Public
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,
Nadia

Please login or Register to Submit Answer