PM
Tela Master/Detail com BootstrapWrapper com problemas.
Boa tarde galera, estou tentando criar uma tela mestre detalhe no formado Bootstrap porem com o componente Wrapper da o erro:
Fatal error: Uncaught TypeError: Argument 1 passed to AdiantiWrapperBootstrapFormWrapper::__construct() must be an instance of AdiantiWidgetWrapperTQuickForm, instance of AdiantiWidgetFormTForm given, called in /var/www/html/app/control/sistema/cadastros/teste/PessoaForm.class.php on line 20 and defined in /var/www/html/lib/adianti/wrapper/BootstrapFormWrapper.php:31 Stack trace: #0 /var/www/html/app/control/sistema/cadastros/teste/PessoaForm.class.php(20): AdiantiWrapperBootstrapFormWrapper->__construct(Object(AdiantiWidgetFormTForm)) #1 /var/www/html/lib/adianti/core/AdiantiCoreApplication.php(60): PessoaForm->__construct(Array) #2 /var/www/html/engine.php(34): AdiantiCoreAdiantiCoreApplication::run(true) #3 /var/www/html/engine.php(53): TApplication::run(true) #4 {main} thrown in /var/www/html/lib/adianti/wrapper/BootstrapFormWrapper.php on line 31
Meu control:
https://pastebin.com/eHkiwSnj
Fatal error: Uncaught TypeError: Argument 1 passed to AdiantiWrapperBootstrapFormWrapper::__construct() must be an instance of AdiantiWidgetWrapperTQuickForm, instance of AdiantiWidgetFormTForm given, called in /var/www/html/app/control/sistema/cadastros/teste/PessoaForm.class.php on line 20 and defined in /var/www/html/lib/adianti/wrapper/BootstrapFormWrapper.php:31 Stack trace: #0 /var/www/html/app/control/sistema/cadastros/teste/PessoaForm.class.php(20): AdiantiWrapperBootstrapFormWrapper->__construct(Object(AdiantiWidgetFormTForm)) #1 /var/www/html/lib/adianti/core/AdiantiCoreApplication.php(60): PessoaForm->__construct(Array) #2 /var/www/html/engine.php(34): AdiantiCoreAdiantiCoreApplication::run(true) #3 /var/www/html/engine.php(53): TApplication::run(true) #4 {main} thrown in /var/www/html/lib/adianti/wrapper/BootstrapFormWrapper.php on line 31
Meu control:
https://pastebin.com/eHkiwSnj
Pedro, veja o que o erro está dizendo. O argumento 1 passado para o construtor da BootstrapFormWrapper deve ser uma instância de TQuickForm e não TForm.
Olá Nataniel, com o código que vc postou minha tela ficou em branco.
A BootstrapFormWrapper não reconhece conteúdos adicionais como TFrame e TTable por exemplo. Veja o exemplo abaixo:
adianti.com.br/framework_files/tutor/index.php?class=FormBootstrapVi
Você precisa usar as funções addQuickField e addQuickFields