MS
Erro ao formatar coluna com setTransformer
Fechado
Usei o método setTransformer para formatar a coluna:
Mensagens e não formata a coluna:
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'ProdutoFormList' does not have a method 'formatSalary' in /home/stgere/public_html/Gerezim/lib/adianti/widget/web/datagrid/TDataGrid.class.php on line 299
- <?php $PRECOVENDA = new TDataGridColumn('PRECOVENDA', 'PRECOVENDA', 'right', 100);
- $PRECOVENDA->setTransformer(array($this, 'formatSalary'));
- ?>
Mensagens e não formata a coluna:
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'ProdutoFormList' does not have a method 'formatSalary' in /home/stgere/public_html/Gerezim/lib/adianti/widget/web/datagrid/TDataGrid.class.php on line 299
Oi Marcelo,
Parece que não existe o método formatSalary na classe atual (ProdutoFormList)...
abs,
Pablo