RS
error new TSeekButton
tentando colocar um setAuxiliar para mostrar no nome do Dependente TENTRY
Fatal error: Uncaught Error: Call to a member function setParameter() on null in C:laragonwwwpaxlibadiantiwidgetformTSeekButton.php:146
Stack trace:
#0 C:laragonwwwpaxappcontrolpaxClientesList.class.php(33): AdiantiWidgetFormTSeekButton->setAuxiliar(Object(AdiantiWidgetFormTEntry))
#1 C:laragonwwwpaxlibadianticoreAdiantiCoreApplication.php(80): ClientesList->__construct(Array)
#2 C:laragonwwwpaxengine.php(27): AdiantiCoreAdiantiCoreApplication::run('1')
#3 C:laragonwwwpaxengine.php(64): TApplication::run()
#4 {main}
thrown in C:laragonwwwpaxlibadiantiwidgetformTSeekButton.php on line 146
- <?php
- $a_depe = new TSeekButton('a_depe');
- $depe_name = new TEntry('depe_name');
- $a_depe->setAuxiliar($depe_name);
- $depe_name->setEditable(FALSE);
- $depe_name->setSize('calc(100% - 120px)');
- $depe_name->style .= ';margin-left:3px';
- $objseek = new DependentesSeek;
- $action = new TAction(array($objseek, 'onReload'));
- $a_depe->setAction($action);
- ?>
Fatal error: Uncaught Error: Call to a member function setParameter() on null in C:laragonwwwpaxlibadiantiwidgetformTSeekButton.php:146
Stack trace:
#0 C:laragonwwwpaxappcontrolpaxClientesList.class.php(33): AdiantiWidgetFormTSeekButton->setAuxiliar(Object(AdiantiWidgetFormTEntry))
#1 C:laragonwwwpaxlibadianticoreAdiantiCoreApplication.php(80): ClientesList->__construct(Array)
#2 C:laragonwwwpaxengine.php(27): AdiantiCoreAdiantiCoreApplication::run('1')
#3 C:laragonwwwpaxengine.php(64): TApplication::run()
#4 {main}
thrown in C:laragonwwwpaxlibadiantiwidgetformTSeekButton.php on line 146
Faça um teste e chame a função setAuxiliar após a setAction.
Bingoooo, obrigado Nataniel. resolvido
Testei, não deu erro, mas não traz o nome no auxiliar segue a imagem
https://uploaddeimagens.com.br/imagens/BeRNIpw
Aí pode ser um detalhe na classe DependentesSeek. Poste o código dela aqui