I want to pass a list position to my dynamic query, but it does not evaluate. have someone try something like this :
.......
if(selectedType == Constants.settlementTypeAutre){
query += ' and numm__Tech_TypeCollectif__c NOT IN( :parameters[5],:parameters[6])';
}else if(selectedType == Constants.settlementTypeFournisseur){
query += ' and numm__Tech_TypeCollectif__c IN( :parameters[5],:parameters[8])';
}
else if(selectedType == Constants.settlementTypeClient){
query += ' and numm__Tech_TypeCollectif__c IN( :parameters[6],:parameters[8])';
} .....
i don't want to create one variable by one, because i have 12 variables to put in this query. If there is no solution, then i will have to do it.
NOT IN : ( parameters[5],parameters[6])
?