This would mean I would have to loop through the columnlist for every record?

maybe I could do a replacelist or something????

Tell me your thoughts.

Gareth.



-----Original Message-----
From: Elliot Russo [mailto:[EMAIL PROTECTED]
Sent: Friday, 2 April 2004 3:45 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Building Custom tags that do all the work
Problem.


Hi,

how about

Attribute
contentArray[4].value = "<a href='userdetails.cfm?{userid}'>{username}</a>";

TAG
in tag something like this approach (a merge)

<cfloop query="attributes.query">

<cfloop list="#attributes.query.columnlist#" index="col">

...
<cfset s = replace(s, "{#field#}", attributes.query[col][currentrow])>
...

</cfloop>

</cfloop>
(where s comes for the array)

Elliot

"Gareth Edwards" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Currently working on a problem that I am having with a custom tag.

I wish to send the custom tag a query and a seperate array of structures.

Problem is because this custom tag needs to be used in a few different
situations I need to be able to pass a string to the custom tag with the
values I want by looping through the query "INSIDE" the custom tag.

ie. On the caller page I have this.

contentArray[4] = StructNew();
contentArray[4].value = "<a
href='userdetails.cfm?#query.userid#'>#query.username#</a>";
contentArray[4].size = "15%";

it then sends those values to the custom tag along with the "query"

The second line. How can I send the second value without evaluating it
untill it gets to the custom tag. Then the custom tag evaluating those query
values when it loops through the query.

Sorry if it is a bit unclear, I'm not sure how to explain my situation. Any
questions... let me know.

I have tried another of different methods of doing this and this is the only
way I can think of being able to easily change the string that is sent to
the custom tag, with values that get evaluated in the custom tag and not on
the caller page before the values are sent.

Gareth.




---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to