[Flow] How to build a search/filter form above of a list
Axel Wüstemann
awu at qbus.de
Wed Oct 30 20:32:37 CET 2013
Hello,
how I can build a search form above of a list. Forms need to contain
object, but here I don't have an object, I have several fields by which
I want to filter my list.
I tried:
<f:form method="post" action="index" object="{filter}"
objectName="filter" enctype="multipart/form-data">
...
And in my indexAction
public function indexAction(array $filter = null) {
...
$this->view->assign('filter', $filter);
// the options for lookup selectbox
$this->view->assign('fasts',
$this->lookupRepository->findAllActiveFastsAsOptions());
}
Within my filter fields, I have selectbox 'fasts' which I initialize
with options. On submit of the search form, only this select box is set
in the $filter array, not other fields of the form, not the other fields
I filled.
How could I solve this?
Thank you
Axel
More information about the Flow
mailing list