Get Free Trial

Filtering out blanks

David Chen asked on May 4, 2016

Is this the code? what about Date values? filtering out blank or 00:00:00 values
SyntaxEditor Code Snippet

{uniqueName: 'Color',filter:{members:['Color.[]'],negation:true}}","") + "

2 answers

Iryna Kulchytska Iryna Kulchytska Flexmonster May 4, 2016

Hi David,
Here is a sample:
It shows how to filter out ‘(blank)’ member in Color and ‘Invalid date’ member in Date. I have chosen “date string” type for Date field in the sample (please see line 2). If you meant a different type for Date field, please let me know which one. More information about data types in JSON can be found in documentation – please see addJSON() API call description. 
Kind regards,

Tanya Gryshko Tanya Gryshko Flexmonster December 7, 2016

Hello David and all Flexmonster users,
After the release of version 2.3, we would like to provide you with the updated sample:

Please login or Register to Submit Answer