I've looked in vain for a simple example of using a SearchForm. The documentation is sparse and it seems like what I'm looking for is simple and probably default behavior, but I can't seem to figure out how to put it together. I want a simple form, based on a data source, with a Search button on it. I want to apply the form fields as search criteria to a data source and update a couple of other components (form and grid) when the user presses the Search button or just presses Enter.
I've tried creating a simple search form with a TextItem and SubmitItem and overriding the search() method but clicking the SubmitItem doesn't invoke it. And there isn't anything equivalent to DynamicForm.setSaveOnEnter() that I have found.
I can probably accomplish what I want with a DynamicForm by overriding saveData(), but SearchForm seems like the right way to go, but only because of the name.
I've tried creating a simple search form with a TextItem and SubmitItem and overriding the search() method but clicking the SubmitItem doesn't invoke it. And there isn't anything equivalent to DynamicForm.setSaveOnEnter() that I have found.
I can probably accomplish what I want with a DynamicForm by overriding saveData(), but SearchForm seems like the right way to go, but only because of the name.
Comment