Our application stores advanced criteria as user preferences. In the client framework, reinstantiated this saved state is relatively easy.
I need to re-create the SQLWhere clause used for a stored criteria outside of a web request (e.g. from a scheduler).
I know how to do this once I have an AdvancedCriteria object, but how do I Get from the stored JSON to an instantiated com.isomorphic.criteria.AdvancedCriteria object?
Code:
JavaScriptObject criteria = JSON.decode(criteriaJSON); [smartgwt]AdvancedCriteria ac = new AdvancedCriteria(criteria);
I know how to do this once I have an AdvancedCriteria object, but how do I Get from the stored JSON to an instantiated com.isomorphic.criteria.AdvancedCriteria object?
Comment