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

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

Answered
Travis Bean asked on June 22, 2022

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 June 23, 2022

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 June 23, 2022

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 June 24, 2022

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 June 24, 2022

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 June 27, 2022

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