-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create onSearch in CreateController #84
Labels
Comments
Exemplo de código /**
* Register the filter in the session
*/
public function onSearch($param = null)
{
$data = $this->form->getData();
$filters = [];
TSession::setValue(__CLASS__.'_filter_data', NULL);
TSession::setValue(__CLASS__.'_filters', NULL);
$filters = OrmAdiantiHelper::addFilter($filters,'nome','like',$data->nome,null);
$filters = OrmAdiantiHelper::addFilter($filters,'ddi' ,'=' ,$data->ddi ,null);
$filters = OrmAdiantiHelper::addFilter($filters,'ddd' ,'=' ,$data->ddd ,null);
$filters = OrmAdiantiHelper::addFilter($filters,'celular' ,'like' ,$data->celular ,null);
FormDinHelper::debug($filters);
// fill the form with data again
$this->form->setData($data);
// keep the search data in the session
TSession::setValue(__CLASS__.'_filter_data', $data);
TSession::setValue(__CLASS__.'_filters', $filters);
$this->onReload(['offset' => 0, 'first_page' => 1]);
} |
bjverde
changed the title
include search orm adianti on CreateController
create onSearch in CreateController
Oct 7, 2023
This was referenced Oct 7, 2023
bjverde
added a commit
that referenced
this issue
Oct 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
include search orm adianti on CreateController
Depende de:
Related with:
The text was updated successfully, but these errors were encountered: