Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Save criteria of FilterBuilder?

$
0
0
Hi,

Is it possible to save the criteria created by filterbuilder? I have tried so far something like
Code:

JSONEncoder encoder = new JSONEncoder();
encoder.setDateFormat(JSONDateFormat.DATE_CONSTRUCTOR);
String criteriaValue = JSON.encode(advancedFilter.getCriteria(true).getJsObj(), encoder);
GWT.log("A:"+criteriaValue);

But it doesnt work. Is it possible to save the criteria? The idea is to store the crit in s database and the user can retrieve it later.

Thx

Viewing all articles
Browse latest Browse all 4756

Trending Articles