> -----Original Message-----
> From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED]
> Sent: zondag 28 maart 2004 3:22
> To: CF-Talk
> Subject: Re: Query Output in a cfscript
>
> Yes, but I'm not trying to actually 'write' the data to a
> page at this point. I only want to create the color objects
> associated with the item object being initialized.
>
> instance.colors = newArray(1);
>
> ...
>
> <cfquery name="colors" datasource="#application.DSN#>
> select intColorID
> from tblapparelitemcolors
> where intApparelItemID = #arguments.ID# </cfquery>
>
> ... // and stuff here
>
> <cfscript>
> instance.ID = arguments.ID;
> instance.itemname = item.name;
> instance.itemsubcat = item.subcat;
> ... // more code here
> [this doesn't work, but is what I'm trying to figure out]

for(i=1;i LE colors.recordCount;i=i+1){
instance.colors[i] =
createObject('component','Color');
instance.colors[i] =
instance.colors[i].get(colors.intColorID[i]);
}

> ... // more code here
> </cfscript>
>
> ... // and it goes on
>
> Hope this clarifies what I'm trying to do...
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to