Opps.

Forgot to attach the screen captures.


OK.

It seems I have it working properly now. See attached screen captures.

How would I check which link was clicked (RecNo) and match that against the 
(RecNo) in the fileinfo.cfm (template) and display the filename.

Sorry for asking so many questions but this is kinda over my head.

Thanks again for ALL your help.




>Date: Tue, 25 Sep 2001 14:08:39 -0400
>To: [EMAIL PROTECTED]
>From: [EMAIL PROTECTED]
>Subject: Re: Passing the results from the <CFDIRECTORY to another template?
>
>
>Opps.
>
>Forgot to attach the screen captures.
>
>
>At 11:44 AM 9/24/01 -0700, you wrote:
>>Make sure you have session management activated...then
>>
>><cfdirectory name="queryName" ...>
>>
>><!--- Create a new structure for each column of info you want --->
>><cfset Session.stDirFileName = StructNew()>
>><cfset Session.stDirFileSize = StructNew()>
>>
>><cfset RecNo=1><!--- set an index counter --->
>><cfoutput query="queryName">
>>     <cfset stDirFileName[RecNo] = Name>
>>     <cfset stDirFileSize[RecNo] = Size>
>>     ...
>>     <cfset RecNo=RecNo + 1>
>></cfoutput>
>>
>>Then on your other template page...
>>
>>The directory listing is:<br>
>><!--- loop from 1 to the number of keys in the structure --->
>><cfloop index="RecNo" from=1 to=#ListLen(StructKeyList(stDirFileName))#>
>>     #stDirFileName[RecNo]# #stDirFileSize[RecNo]#<br>
>></cfloop>
>>
>>Give that a whirl...this has not been tested, but should give you the idea
>>on how to complete it.
>>
>>Bruce
>>[EMAIL PROTECTED]
>>
>>----- Original Message -----
>>From: <[EMAIL PROTECTED]>
>>To: "CF-Talk" <[EMAIL PROTECTED]>
>>Sent: Monday, September 24, 2001 10:32 AM
>>Subject: Re: Passing the results from the <CFDIRECTORY to another template?
>>
>>
>> > At 10:28 AM 9/24/01 -0700, you wrote:
>> > >There are multiple ways to pass it.  What directory info are you wanting
>>to
>> > >pass?
>> >
>> >
>> > All the information from the <CFDIRECTORY> Name, Type etc.
>> >
>> > >You can pass info from one template to another via:
>> > >     Session vars
>> > >     Client vars
>> > >     Application vars
>> > >     Form fields
>> > >     URL parameters
>> > >     etc
>> > >
>> > >You may want to store the directory info you want into a structure or
>>array,
>> > >scope it as a Session variable, then reference it on the next template.
>> >
>> > Yikes. How do I do that?
>> >
>> >
>> > >Bruce
>> > >[EMAIL PROTECTED]
>> > >
>> > >----- Original Message -----
>> > >From: <[EMAIL PROTECTED]>
>> > >To: "CF-Talk" <[EMAIL PROTECTED]>
>> > >Sent: Monday, September 24, 2001 10:00 AM
>> > >Subject: Re: Passing the results from the <CFDIRECTORY to another
>>template?
>> > >
>> > >
>> > > > How can I pass the results from the <CFDIRECTORY to another template?
>> > > >
>> > > > Name
>> > > > Size
>> > > > Type..etc
>> > > >
>> > >
>> >
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to