Limit dropdown box by conditions in a table
Posted: 2022-06-06 15:20
Hi,
This is probably simple, I have two tables, Project and Notify I want to limit a lookup drop down menu in the "Notify" table to only include "Active " projects from the "Project" table. I have a field in the project table named "active" that is set as a checkbox. When I edit the query for the "Project" lookup menu in the "Notify" table using the the ADVANCED button in the Lookup field dialog in AppGini it doesn't work. Most likely I'm using some wrong syntax but can't find what I'm doing wrong.
I'm simply adding a WHERE clause to the default query language.
The results of the above query are an error message: When I run the very same query on my database in myphpadmin I get the desired results. I just need to know why it doesn't work on my AppGini app.
This is probably simple, I have two tables, Project and Notify I want to limit a lookup drop down menu in the "Notify" table to only include "Active " projects from the "Project" table. I have a field in the project table named "active" that is set as a checkbox. When I edit the query for the "Project" lookup menu in the "Notify" table using the the ADVANCED button in the Lookup field dialog in AppGini it doesn't work. Most likely I'm using some wrong syntax but can't find what I'm doing wrong.
I'm simply adding a WHERE clause to the default query language.
The results of the above query are an error message: When I run the very same query on my database in myphpadmin I get the desired results. I just need to know why it doesn't work on my AppGini app.