By fibo2358 - Fri Dec 07, 2018 8:23 am
- Fri Dec 07, 2018 8:23 am
#821947
Hello,
I have three fields in a Dynaform: two dropdowns (field A, field B) and field C.
The field C has a sql query defined:
SELECT CVALUE
FROM PMT_DTABLE
WHERE AVALUE= @@fieldA AND BVALUE= @@fieldB
When I select a menu item from the field A dropdown, the query related to the field C is sent to the database despite the field B menu item has not been chosen.
Is it possible to avoid executing this query? I would like to execute the query only if both menu items (field A and field B) are set - the AVALUE and BVALUE columns in the PMT_DTABLE do not accept null values.
Thank you for your advice.
fibo2358
I have three fields in a Dynaform: two dropdowns (field A, field B) and field C.
The field C has a sql query defined:
SELECT CVALUE
FROM PMT_DTABLE
WHERE AVALUE= @@fieldA AND BVALUE= @@fieldB
When I select a menu item from the field A dropdown, the query related to the field C is sent to the database despite the field B menu item has not been chosen.
Is it possible to avoid executing this query? I would like to execute the query only if both menu items (field A and field B) are set - the AVALUE and BVALUE columns in the PMT_DTABLE do not accept null values.
Thank you for your advice.
fibo2358