Hi,
I am trying to reference a form element in the 'Joins where and/or order by statement (SQL)' field. But it throws an error. I have referenced it like this {ac_salg___postnr.value} but seems to be wrong. Whats the correct reference to use (hope it is possible) ?
Here is the statement:
WHERE {thistable}.`id`
IN ( SELECT montorid FROM `xx_montorer`, `xx_montpostnr` where xx_montorer.id=xx_montpostnr.montorid and xx_montpostnr.montorpostnr= {xx_salg___postnr.value} )
(Background: user enters a postalnumber in a postalno field. Based on this input i need to fill a dropdown with all the monters that are doing montings in the areas with the entered postalcode. )
I am trying to reference a form element in the 'Joins where and/or order by statement (SQL)' field. But it throws an error. I have referenced it like this {ac_salg___postnr.value} but seems to be wrong. Whats the correct reference to use (hope it is possible) ?
Here is the statement:
WHERE {thistable}.`id`
IN ( SELECT montorid FROM `xx_montorer`, `xx_montpostnr` where xx_montorer.id=xx_montpostnr.montorid and xx_montpostnr.montorpostnr= {xx_salg___postnr.value} )
(Background: user enters a postalnumber in a postalno field. Based on this input i need to fill a dropdown with all the monters that are doing montings in the areas with the entered postalcode. )