> --> [Portfolio | Cluster | Market | Region]: an INTEGER
>
> How would you guys do it?

looks pretty close Laura, you just have to give it a variable name , or do
you want the variable name to be dynamic too?

--> [PortfolioID] : an INTEGER
--> [ClusterID] : an INTEGER
--> [MarketID] : an INTEGER
--> [RegionID] : an INTEGER

allows them to be optional, then you could use some conditional logic to
determine what to do when you got none or when you got more than one.
Example, perhaps Portfolio is the default. And if you get Portfolio and any
of the others, then just ignore the others

Or,
are you passing in some variable, perhaps "ID", and it has a numeric value
but can refer to any of the 4 above? If so, then you should also pass in
some sort of VariableType or whatever, along the lines of

--> ID : an INTEGER   (note that it's required)
--> [VariableType] : a STRING (Porfolio|Cluster|Market|Region)

and then still set defaults with
<cfparam name="attributes.ID" type="numeric">
<cfparam name="attributes.variabletype" default="Portfolio" type="string">


If you don't do one of the above, what will happen if your url contains
"&ID=Portfolio&ID=Cluster" ? or "&PortfolioID=123&ClusterID=777"  ?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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