Filtering out blanks

Answered
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

Public
Iryna Kulchytska Iryna Kulchytska Flexmonster May 4, 2016

Hi David,
 
Here is a sample: https://jsfiddle.net/irynakulchytska/vth4k0g5/
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 http://www.flexmonster.com/api/ - please see addJSON() API call description. 
 
Kind regards,
Iryna

Public
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: https://jsfiddle.net/flexmonster/o5a0e9ma/.
Regards,
Tanya

Please login or Register to Submit Answer