• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFLDAP - Conditional Filters Possible?

New Here ,
Jun 23, 2009 Jun 23, 2009

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?

TOPICS
Advanced techniques

Views

512

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Jun 23, 2009 Jun 23, 2009

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.

Votes

Translate

Translate
Valorous Hero ,
Jun 23, 2009 Jun 23, 2009

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation