Checking data before applying filter
Checking data before applying filter
Hi Allan
I am applying a filter in fnInitComplete as below:
this.fnFilter('<?php echo $this->escape($this->translate('live'), ENT_QUOTES);?>', findColumnNumber('status', settings.aoColumns));
This works fine, except in very rare circumstances where the dataset contains no items matching status 'live'. I would like to only apply the filter if the loaded data set contains 'live'. Please could you let me know the best way to achieve this.
Many thanks
I am applying a filter in fnInitComplete as below:
this.fnFilter('<?php echo $this->escape($this->translate('live'), ENT_QUOTES);?>', findColumnNumber('status', settings.aoColumns));
This works fine, except in very rare circumstances where the dataset contains no items matching status 'live'. I would like to only apply the filter if the loaded data set contains 'live'. Please could you let me know the best way to achieve this.
Many thanks
This discussion has been closed.
Replies
Regards,
Allan