Hi!
I have a form with 5 dropdowns and some other fields.
- dropdown(1)+(2) are dynamic and filled from database
- dropdown(4) have fixed values
- dropdown(3)+(5) filled with DB Multi Record Loader
All dropdowns have value "Please select..." as default.
If dropdown(2) is changed, dropdown(3) loads the data with selected value of dropdown(2). If dropdown(4) is changed, dropdown(5) loads the data with selected value of dropdown(4).
If i change dropdown(2), all next dropdowns reset to default and so on...
All works great but now, i need help at the DB Multi Record Loader for dropdown(5).
To filter & order the output data i set the following in the DB Multi Record Loader -> Advanced Tab -> WHERE statement:
Now i need a second filter with the selected value from dropdown(3)!
If i add a second filter to the WHERE statement:
the dropdown is empty!
The ModelID for dropdown(3) is 'wildtyp'. Can i get the dynamic data value in DB Multi Record Loader of dropdown(5)? The output data must be filterd by 2 values (wildtyp and geschlecht).
Greetz
brostalski
I have a form with 5 dropdowns and some other fields.
- dropdown(1)+(2) are dynamic and filled from database
- dropdown(4) have fixed values
- dropdown(3)+(5) filled with DB Multi Record Loader
All dropdowns have value "Please select..." as default.
If dropdown(2) is changed, dropdown(3) loads the data with selected value of dropdown(2). If dropdown(4) is changed, dropdown(5) loads the data with selected value of dropdown(4).
If i change dropdown(2), all next dropdowns reset to default and so on...
All works great but now, i need help at the DB Multi Record Loader for dropdown(5).
To filter & order the output data i set the following in the DB Multi Record Loader -> Advanced Tab -> WHERE statement:
`Altersklasse_Geschlecht` = <?php echo $form->data['geschlecht']; ?> ORDER BY `Altersklasse_Kurz` ASC
Now i need a second filter with the selected value from dropdown(3)!
If i add a second filter to the WHERE statement:
`Altersklasse_Geschlecht` = <?php echo $form->data['geschlecht']; ?> AND `Altersklasse_Wildtyp` = <?php echo $form->data['wildtyp']; ?> ORDER BY `Altersklasse_Kurz` ASC
the dropdown is empty!
The ModelID for dropdown(3) is 'wildtyp'. Can i get the dynamic data value in DB Multi Record Loader of dropdown(5)? The output data must be filterd by 2 values (wildtyp and geschlecht).
Greetz
brostalski