Hi
I'm trying to generate a dropdown using the database join element, but only showing data relating to another field in the table.
Example:
I have a list with one of the fields is Job Number.
I have a databasejoin element that gets the job number from the database but it shows all the job numbers instead of only the job numbers relating to the current row clicked.
I know I will probably need to use the Data-Where option but i don't know how to use it. Ive tried:
where (select jobs.job_number from jobs where jobs.id = {expense___jobid_raw})
but that returns no data.
I hope this makes sense.
I'm trying to generate a dropdown using the database join element, but only showing data relating to another field in the table.
Example:
I have a list with one of the fields is Job Number.
I have a databasejoin element that gets the job number from the database but it shows all the job numbers instead of only the job numbers relating to the current row clicked.
I know I will probably need to use the Data-Where option but i don't know how to use it. Ive tried:
where (select jobs.job_number from jobs where jobs.id = {expense___jobid_raw})
but that returns no data.
I hope this makes sense.