Hi,
I've searched in the wiki and the forum but havent found anything about this.
I have an dropdown element populated by the result of a database join.
I would like to filter the results by adding a SQL where clause refering to the value of 2 other elements in the said form, is it possible? if so what would be the sintax?
at the moment the where clause (tested directly against the database is) :
where j_equip.equip_id= j_marc.equipamento_id
and j_marc.data_incio > <element value(date)>
and j_marc.data_fim < <element value(date)>
and the full element name I pretend to use to filter the results are:
j_marc_date_start
j_marc_date_end
thanks
I've searched in the wiki and the forum but havent found anything about this.
I have an dropdown element populated by the result of a database join.
I would like to filter the results by adding a SQL where clause refering to the value of 2 other elements in the said form, is it possible? if so what would be the sintax?
at the moment the where clause (tested directly against the database is) :
where j_equip.equip_id= j_marc.equipamento_id
and j_marc.data_incio > <element value(date)>
and j_marc.data_fim < <element value(date)>
and the full element name I pretend to use to filter the results are:
j_marc_date_start
j_marc_date_end
thanks