2004-10-08 07:58:23 UTC
Greetings!
[ SM v2.4.2 ]
I have an entity grid used for editing a single row in a table of datas. Each row of the grid has a single submit button. The grid also has several column filters.
I need to the filters to run only to the row being submitted. But on submit, the filters get applied to every row, not just the submitted row.
The current code is (essentially) the pretty standard setup:
// previous code has already instantiated and
// configured the form, and the entities and filters
// have been add()'ed.
$form->run();
if (!$form->dataVerified()){
// output the form
} else {
// determine the row being submitted
// do db writes, etc.
}
I guess the issue is that $form->run() checks the ftl flag and invokes the column filters on *all* the rows.
Any suggestions on how to apply filters only to the row being submitted?
Thanks!