Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: -==cfSearching==-
rdk8487 wrote:
> In the custom tag I am referencing the query like:
> <cfloop query="#attributes.query#">
> but I keep getting this error:
> "The value of the attribute query, which is currently "fe", is invalid. "
It is a scoping problem. The query is defined in the calling page. To access it by name, within the custom tag, use the "caller" scope.
<cfloop query="caller.#attributes.nameOfTheQuery#">
Copy link to clipboard
Copied
quote:
Originally posted by: JR "Bob" Dobbs
If the query object is passed to the custom tag via an attribute you shouldn't need the caller scope. See attached sample.