Help with lookup field in appgini project (advanced query)
Posted: 2020-10-20 17:42
Hi. I have a table "budget" with a lookup field named "project".
I am trying to customize the query in the advanced functions of the appgini lookup field so that in the "project" field of the "budget" table appear two concatenated fields of the "projects" table, ie the "project" and "start_conclusion" fields, limited to records of the "projects" table in which the "active" field has the value "YES".
I tried with this custom query but it doesn't work:
SELECT `projects`.`pkey`, `projects`.`project`, `projects`.`start_conclusion` CONCAT_WS('', `projects`.`project`, `projects`.`start_conclusion`) FROM `projects` WHERE `projects`.`active` = 'YES' ORDER BY `project`
571/5000
Help with lookup field in appgini project.
Hi. I have a table "budget" with a lookup field named "project".
I am trying to customize the query in the advanced functions of the appgini lookup field so that in the "project" field of the "budget" table appear two concatenated fields of the "projects" table, ie the "project" and "start_conclusion" fields, limited to records of the "projects" table in which the "active" field has the value "YES".
I tried with this custom query but it doesn't work:
Can anyone help me figure out where am I wrong?
Thank you so much!
Fabiano
I am trying to customize the query in the advanced functions of the appgini lookup field so that in the "project" field of the "budget" table appear two concatenated fields of the "projects" table, ie the "project" and "start_conclusion" fields, limited to records of the "projects" table in which the "active" field has the value "YES".
I tried with this custom query but it doesn't work:
SELECT `projects`.`pkey`, `projects`.`project`, `projects`.`start_conclusion` CONCAT_WS('', `projects`.`project`, `projects`.`start_conclusion`) FROM `projects` WHERE `projects`.`active` = 'YES' ORDER BY `project`
571/5000
Help with lookup field in appgini project.
Hi. I have a table "budget" with a lookup field named "project".
I am trying to customize the query in the advanced functions of the appgini lookup field so that in the "project" field of the "budget" table appear two concatenated fields of the "projects" table, ie the "project" and "start_conclusion" fields, limited to records of the "projects" table in which the "active" field has the value "YES".
I tried with this custom query but it doesn't work:
Can anyone help me figure out where am I wrong?
Thank you so much!
Fabiano