(SOLVED) Pre-filter SQL Syntax

Status
Not open for further replies.

mbeley

Member
I'm using a pre-filter on my candidates list, so that it only displays the candidates with a null status. It is working as expected, filtering out the candidates with a non null statuts.
Capture d’écran 2014-05-20 à 08.30.49.png

In another form, I have a db join to candidates.
I would like the db join to show the same values (at the moment it shows all values)
I'm trying to use Data - Where in the db join element, but for some reason it's not working as I expected.

Below are several of the where statements I tried and the error messages or problems I'm seeing:

Code:
WHERE 'estatuto' IS NULL
my form is loading but shows no values in the candidate dropdown

Code:
WHERE {thistable}.'estatuto' IS NULL
my form is not loading I get a SQL 0 error:
SQL=SELECT DISTINCT(`candidatos`.`id`) AS value, CONCAT_WS('', candidatos.nome, ' ', candidatos.apelido) AS text FROM `candidatos` AS `candidatos` WHERE candidatos.'estatuto' IS NULL ORDER BY text ASC

Code:
WHERE {thistable}.'estatuto' IS NULL
SQL=SELECT DISTINCT(`candidatos`.`id`) AS value, CONCAT_WS('', candidatos.nome, ' ', candidatos.apelido) AS text FROM `candidatos` AS `candidatos` WHERE 'candidatos'.'estatuto' IS NULL ORDER BY text ASC

Help please!
Thanks,
Mathieu
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top