Hi everyone,
I hope you have the answer because I've no idea how to fix this bug!
I have a listGrid with the filter bar enabled. I've another field (input box) outside the listGrid and a button. When I click on the button, I create an AdvancedSearch and updates the listGrid Data.
The only bad thing is that, instead of having my search parameter in my filter, i have "[Object object]"
When I was using a simple criteria, all was fine. I don't understand what's wrong.
I also tried to do a lisdGrid.setCriteria but that doesn't change anything.
Anyway, here is the button code :
Thanks in advance for the replies.
I hope you have the answer because I've no idea how to fix this bug!
I have a listGrid with the filter bar enabled. I've another field (input box) outside the listGrid and a button. When I click on the button, I create an AdvancedSearch and updates the listGrid Data.
The only bad thing is that, instead of having my search parameter in my filter, i have "[Object object]"
When I was using a simple criteria, all was fine. I don't understand what's wrong.
I also tried to do a lisdGrid.setCriteria but that doesn't change anything.
Anyway, here is the button code :
Code:
changeButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent arg0) {
AdvancedCriteria ad = new AdvancedCriteria("ituCode",OperatorId.CONTAINS);
ad.addCriteria("ituCode",nameField.getText());
listGrid.invalidateCache();
listGrid.fetchData(ad, new DSCallback() {
public void execute(DSResponse response, Object rawData, DSRequest request) {
listGrid.setData(response.getData());
listGrid.setCriteria(request.getCriteria());
}
});
}
});