I generally put all the fields the query returns in the fusedocs of the 
templates that have that query as an incoming parameter.  Later someone 
will ask you to display the email on that page and oh, could you show the 
phone number too?  So then you open up dsp_showUser.cfm and you look at the 
query to see what you have available.. you see that you don't need to 
change the query or write a new one for this page, because you already have 
what you need.. so you just output 'em where they're wanted and save the 
file and you're done.  if you didn't include the fields you'd have to go to 
the query file, see what it actually returned, then add those fields to the 
query fusedoc in the display file and then output 'em where they go.

2cents

At 08:14 AM 5/30/01 -0400, you wrote:
>I normally only include the fields that I plan to use in that circuit.
>Adding irrelevant information makes the fusedocs harder to read and
>maintain.
>
>Patrick
>
> > Hi all,
> >
> > I'm starting a new project and I'm doing fusedocs for it. The question I
> > have is, say I am reusing a select query several times and in
> > some places I
> > don't need all of the fields returned. Do I include them in the attributes
> > section of the fusedoc (because they do exist, even though they
> > aren't being
> > used) or not? The only reason I can think of why you would is in case
> > someone else adds to/changes the code later and reuses one of the variable
> > names.
> >
> > Thanks,
> > K.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to