Ask a Question related to Macromedia ColdFusion, Design and Development.
-
sillyworm #1
Limitations of CFParam
I'm curious if someone can point me to any documentation regarding the limits
of the <cfparam> tag. More specifically, can it be used to set a default value
of a variable in the query scope? For example, could 'queryName.column1' be
given a value if the column is not actually defined in the query? From the
tests I've run, it seems like it cannot in fact write to vars in this scope,
but I want to make sure. The MM docs don't appear to touch this topic at all.
Thanks.
sillyworm Guest
-
CFPARAM scope
Hello, When I have <cfparam name="test" default="Variables value"> And I not specify the scope, do coldfusion test parameter's existence in... -
CFPARAM default value always processed?
I'm not sure I understand this... recently, I found out that the cfparam default value is always processed... shouldn't this tag only process the... -
CFPARAM Type Changes in CFMX7
I just finished installing a local copy of CFMX7 and the DWMX2004 extensions. I discovered that the type attributes of the CFPARAM tag have changed.... -
CFPARAM Query syntax
Can anyone tell me the proper syntax to enter a query into a cfparam variable?? I would like to put the result of the query Recordset3 into the... -
Using cfset and cfparam variables and NOT being able topass them in URL
I was wondering, how would I be able to use cfset or cfparam to set a variable which can't be passed via any other method? For example, I have this... -
gumshoe #2
Re: Limitations of CFParam
For example, could 'queryName.column1' be
given a value if the column is not actually defined in the query?
cfparam is not quite that smart. Actually, it has more to with the fact that
query objects cannot be written to in the way you are suggesting.
Your db should be able to help in this respect. You can either give a column
a default value when you create the table or, as in oracle, use the NVL()
function to give a column a default value should it be null in the returned
result set.
HTH
"sillyworm" <webforumsuser@macromedia.com> wrote in message
news:d08rrc$fce$1@forums.macromedia.com...> I'm curious if someone can point me to any documentation regarding the
> limits
> of the <cfparam> tag. More specifically, can it be used to set a default
> value
> of a variable in the query scope? For example, could 'queryName.column1'
> be
> given a value if the column is not actually defined in the query? From the
> tests I've run, it seems like it cannot in fact write to vars in this
> scope,
> but I want to make sure. The MM docs don't appear to touch this topic at
> all.
> Thanks.
>
gumshoe Guest



Reply With Quote

