Thanks... this is what I was looking for.
And in response to your question... no. A handler isn't what I want for the
display (I'm pretty sure). It's difficult to explain... I tried in one of
my previous messages to describe what I was attempting.
Basically, I'm working with a result set. Yes, If I use a handler I can
easily pass in a list of ids and have the handler loop over them and display
the rows of the table. Not that difficult.
But. The user needs the ability to click on column headers and re-order the
results set (same one that was originally returend). And then there's the
next-n interface. And then there's the search page that feeds into the
results set.
All of the other functionality is best, easiest, and most simply done
through the cfa_contentobjectfind tag. I can feed in the search form and
the variables passed by the hyperlinked column titles through a stProperties
structure. My goal is to get what I want on the screen with a minimun of
tag calls... we've had problems with speed in other areas of this
application and it would be criminally negligent of me to ignore this now.
For it to work in a handler I'd have to order the ids BEFORE I sent them
into the handler tag. And that would mean that I'd have to return all the
structures, sort them, re-parse out the ids (or send in the structures ...
actually I hadn't thought of that one until just now... was too used to
using the ids only) into the cfa_handler tag. What I'm afraid of is having
to do extra work to peform the search / sorting capability BEFORE passing
into the handler.
I know I may be missing something and I'm not adverse to trying again... but
in addition to all my other problems I'm also on a horrid time constraint
.... and planning a wedding at the same time. The idea of starting over
pales me (and that ain't easy given my conplexion).
Now that I've remembered the possibility of ordering the structures and then
passing the pure structures into the handler tag I realize I could give it a
try with a handler... but this doesn't really solve my problelm. What I
ultimately want is for cfa_contentobjectfind to only return objects that
aren't secured against the user. The way I'm doing it now I'm costing
myself execution time stripping out secured objects from the results set
with the use of the handler. NOT making me happy.
|-----Original Message-----
|From: Michiel Boland [mailto:[EMAIL PROTECTED]]
|Sent: Saturday, March 03, 2001 7:47 AM
|To: Spectra-Talk
|Subject: Re: Guidance? Cfa_contentobject and using the r_stParams
|attribute...
|
|
|On Fri, 2 Mar 2001, Patricia Lee wrote:
|
|> Date: Fri, 02 Mar 2001 12:09:58 -0500
|> From: Patricia Lee <[EMAIL PROTECTED]>
|> Reply-To: [EMAIL PROTECTED]
|> To: Spectra-Talk <[EMAIL PROTECTED]>
|> Subject: Guidance? Cfa_contentobject and using the
|r_stParams attribute...
|>
|> Ok... I've never had to use this attribute but I'm
|considering it now, in
|> relation to the message I posted earlier about trying to
|engage advanced
|> security while outputting results from a cfa_contenobjectfind search.
|>
|> My idea is to call a handler before the display of each item.
|
|Um, I'm a little confused. Isn't the display done with a handler also?
|That would certainly make things much easier.
|
|> The Handler
|> would invoke the cfa_userisauthorized tag (I know I can enable this
|> automatically by using the bsecure attribute, but I'm unsure
|if this will
|> work in the way that I want it. Basically I'm a control
|freak, ok?). I'd
|> LOVE it if the handler could return a simple boolean
|variable back to the
|> calling page and then this variable would cause the display
|to occur or
|> ignore.
|>
|> Should I be using r_stParams for this?
|
|Yes.
|
|> How, exactly.
|
|In your handler, do
|
| <cfa_handler object="this" return="return">
| [bla bla]
| <cfset return.ok = True>
| </cfa_handler>
|
|then, if you invoke the object with r_stParams, the variable
|you specify
|as r_stParams becomes a structure. The objectIDs that are
|passed through
|cfa_contentobject are keys in this structure, and within those keys are
|the 'return' structures that are created by cfa_handler. The
|easiest way
|to find out how exactly this works is by dumping the return structure
|after your cfa_contentobject call.
|
|HTH
|
|Cheers
|Michiel
|
|--
|Michiel Boland <[EMAIL PROTECTED]>
|Digital Valley Internet Professionals
|Plantsoen 17, Wageningen, The Netherlands
|Phone: +31 317 465555, Fax: +31 317 460276
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.