get criteria from filterbuilder

get criteria from filterbuilder smartgwt
Obtener criteria de filterbuilder gwt


String jsObj = JSON.encode(filterBuilder.getCriteria().getJsObj());
SC.say(jsObj);


o tambien se puede utilizar

AdvancedCriteria cr = filterBuilder.getCriteria();

JavaScriptObject jso = cr.getJsObj();

Map map = cr.getValues();
Set keys = map.keySet();
Iterator it = keys.iterator();

while( it.hasNext()){
String key = it.next().toString();
System.out.println("=> "+map.get(key));
}
Out put
=> AdvancedCriteria
=> and
=> [object Object]


0 pensamientos:

Post a Comment

feedback!