开发者

set multiple parameters in criteria

开发者 https://www.devze.com 2023-03-15 22:50 出处:网络
I need to set multiple parameter in a criteria. Can anybody please tell, how to achieve this in smartgwt

I need to set multiple parameter in a criteria. Can anybody please tell, how to achieve this in smartgwt

Actually my listgrid data need to filter with two id

int empID = 12;
int yearSpentID = 4;

Criteria c = new Criteria();
c.addCriteria("emp.id",empID);

listgrid.fet开发者_开发技巧chData(c)  

In this case listgrid data will be fetched filtered with employee id but i need to use employee id and also year spent id for filereing data on listgrid

Any suggestions?


Maybe missing something but this appears to be extremely simple: just call addCriteria() again:

c.addCriteria("yearSpendID", 4);
0

精彩评论

暂无评论...
验证码 换一张
取 消