from tobylaroni @

If you are inside a loop (using cfoutput or cloop) of a query generated by CFDIRECTORY, you *cannot* use the attributes scope! This is because within the loop. "attributes" is the name of one of the fields returned by CFDIRECTORY. If you're in a CFDIRECTORY loop and you try to set the value of, say, attributes.person_id, you will encounter genuinely odd errors like:

You have attempted to dereference a scalar variable of type class coldfusion.sql.QueryColumn as a structure with members.

and the same situation, url scope is also not allowed.



swangs 發表在 痞客邦 PIXNET 留言(0) 人氣()