Why not just do this:
data = {};
data.query = somequery;
data.whatever = "ice cream";
On Wed, Jul 20, 2011 at 7:40 AM, Richard White <[email protected]> wrote:
>
> Hi,
>
> is there any way to add custom variables to cfquery metadata.
>
> for example: i know i can add them as follows:
>
> mt = getMetaData(query)
> mt[1].newVar = "value";
>
> however, this query gets passed through various functions so instead of also
> passing the metadata through, i would just like to call getMetaData(query) in
> another function and it will also return the myVar variable that was
> previously set
>
> thanks
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346324
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm