Ask a Question related to Coldfusion Database Access, Design and Development.
-
fidibidabah #1
URL Atribute Dynamically Changing Query
:confused;
This is a very real life program, but for simplicity terms, I'm going to use
the ubiquitous Art Gallery example.
I know a little bit about the whole #URL.attribute# thing, but I'm confused on
how to integrate it into an actual SQL query (or if I even can). Basically I
want something like the following:
SELECT DISTINCTROW LASTNAME, FIRST NAME
FROM ARTISTS
ORDER BY URL.ORDERBY
and if the url is art.cfm?orderby=lastname I want it to sort by the last name,
and if art.cfm?orderby=firstname I want it to sort by the first name. Again,
I'm familiar with the concept, but not the syntax to be used in an actual SQL
query as opposed to just a query output.
Thanks for any light you can shed on the topic :)
fidibidabah Guest
-
Dynamically changing Button class
You can change a buttons 'upSkin' for exaple with the following code: myButton.setStyle('upSkin', myFunkyClass); where myFunkyClass is created like... -
Changing Text Dynamically
Hello, I would like to know if the text displayed on a webpage changes dynamically.I have 2 drop down menus and based on the options chosen I... -
Changing UserControls Dynamically
I have 2 user controls and I would like to display 1 of them depending on a session variable. I have trie a place holder, but it doesnt seem to... -
changing default runlevel dynamically
How can I choose the runlevel dynamically at startup through lilo menus or otherwise? I want to make a custom runlevel for powersave and such. ... -
Changing module dynamically
Thomas M. Widmann sikyal: I'm not sure how much control you have over the architecture of the whole thing, but this is how I would implement... -
paross1 #2
Re: URL Atribute Dynamically Changing Query
I might do something like this:
SELECT DISTINCTROW LASTNAME, FIRST NAME
FROM ARTISTS
<cfif IsDefined("url.orderby")>ORDER BY #URL.ORDERBY#</cfif>
Phil
paross1 Guest



Reply With Quote

