Copy link to clipboard
Copied
I am building an LDAP contact search form. The search form provides four possible search criterion: First Name, Last Name, Department and Location. The idea is that a user can supply any combination of these 4 attributes to search LDAP for a contact match. Outside of writing an insane CFIF block, is it possible to write a dynamic CFLDAP query? Where each form attribute passed is dynamically supplied as a fliter within the CFLDAP tag?
I can't seem to find any post on the matter. Anyone?
The filter paremeter of the LDAP tag is just a string.
Dynamically build the string for your filter as a variable.
Use said varialbe in the filter parameter of the LDAP tag.
Copy link to clipboard
Copied
The filter paremeter of the LDAP tag is just a string.
Dynamically build the string for your filter as a variable.
Use said varialbe in the filter parameter of the LDAP tag.