Skip to content
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

New columns added make grid go blank #65

Closed
rmingas opened this issue Jan 16, 2019 · 0 comments
Closed

New columns added make grid go blank #65

rmingas opened this issue Jan 16, 2019 · 0 comments

Comments

@rmingas
Copy link

rmingas commented Jan 16, 2019

I've created SQL tables for selective options and added the respective lines on loaddata.php file. The syntax is the same as the demo ones (continent and country) except for the data and table names and id. Only the first one works the others make the grid go blank when respective lines are uncommented. What could possibly be wrong?

I belive it's a code error on my database...

$grid->addColumn('id', 'ID', 'integer', NULL, false);
$grid->addColumn('firstname', 'Nome', 'string');
$grid->addColumn('name', 'Sobrenome', 'string');
$grid->addColumn('id_clienttype', 'Tipo de cliente', 'string', fetch_pairs($mysqli, 'SELECT id, name FROM clienttype'), true);
$grid->addColumn('phone', 'Telefone', 'string');
$grid->addColumn('email', 'Email', 'email');
$grid->addColumn('id_seller', 'Assistente comercial', 'string' , fetch_pairs($mysqli, 'SELECT id, name FROM seller'), true);
$grid->addColumn('firstdate', 'Data de abordagem', 'date');
$grid->addColumn('id_packtype', 'Tipo de pacote', 'string' , fetch_pairs($mysqli, 'SELECT id, name FROM packtype'), true);
$grid->addColumn('id_packstate', 'Estado do pacote', 'string' , fetch_pairs($mysqli, 'SELECT id, name FROM packstate'), true);
$grid->addColumn('packdate', 'Data do pacote', 'date');
$grid->addColumn('obs', 'Observações', 'string');

Here is a copy of the sql file in txt format

pharmacu_ema.txt

@rmingas rmingas closed this as completed Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant