When creating tables through DataTableFactory::createFromType() method, how can I pass some parameters to it?
I'm using a datatable as a sub-table, so it needs to be filtered by a field. In controller I get that parameter but it needs to be passed when building query.
If using DataTableFactory::create() I guess I can solve the issue, but I want to build tables from types.
Hello,
When creating tables through
DataTableFactory::createFromType()
method, how can I pass some parameters to it?I'm using a datatable as a sub-table, so it needs to be filtered by a field. In controller I get that parameter but it needs to be passed when building query.
If using
DataTableFactory::create()
I guess I can solve the issue, but I want to build tables from types.Any hint? Thanks!