I'm trying to span a search form over two cells in an HLayout. Four fields on one side and four on the other. I'm using ValuesManager as in the example in the Showcase, but when I attempt to recreate the call from the button to filter a datasourceI have notices that the getValuesAsCriteria is not part of Values Manager ? I assumed that it would take the place of the DynamicForm in this splitting instance ?
Old code with a single Form:
Trying to do the same with two forms linked through a ValuesManager:
Any guidance on this would be gratefully received.
Al
Old code with a single Form:
Code:
searchButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (myForm.validate()) { myListGrid.filterData(myForm.getValuesAsCriteria()); } } });
Code:
searchButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (valuesManager.validate()) { myListGrid.filterData(valuesManager.getValuesAsCriteria()); // err? } } });
Al
Comment