loop a cfldap query

New Here ,
Feb 27, 2015 Feb 27, 2015

Copy link to clipboard

Copied


I'm trying to get a list of users in a distribution group through a cfldap query, but my record count is always 1.

I've tried:

<cfloop query="results">

<cfoutput>

Name: #cn# Email: #mail#<br/>

</cfoutput>

</cfloop>

<cfoutput>#results.RecordCount#</cfoutput> Value I get back is 1.

Also tried

<cfdump> <cftable> but the results are always the first record.

I'm thinking I need to loop the query and create a list somehow, but I'm getting lost in all the online documentation. Could someone point me in the right direction?

Mahalo;

Charles

Views

217

Likes

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
Contributor ,
Mar 08, 2015 Mar 08, 2015

Copy link to clipboard

Copied

LATEST

Did you check the result set is actually 1 or not?

Likes

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