Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Adila #1
sorting cfgridcolumn by one field, display a differentfield
Hi,
I would like to know if I can use cfgridcolumn to sort by a field other than
what I want to display. For example, this is my query:
<cfquery name="myQuery"....>
select rank, description
from myTable
</cfquery>
So I want to display the "description" but when I click the header of this
column I want to sort by "rank". Right now it will sort by description. I do
not want to display "rank" because it has no meaning to the user.
<cfgrid query="myQuery" name="mechGrid" rowheaders="no" height="800"
sort="yes">
<cfgridcolumn name="description" display="true" > <!---but I want to sort
by "rank" here--->
</cfgrid>
Adila Guest
-
format display from database field
:clock;:rose; The database saves the text from the textarea field of the form correctly. I can format the paragraph breaks okay that were entered... -
Display SQL rows by certain field?
I have a SQL database that contains the fields "author," "title," and "category." I want to create a web page that sorts the entries by... -
Sorting information from text-field
Information is entered randomly in just one text box (name, social security number, lenght,weight). The problem is how to recognize that what... -
I need to display a PDF from SQL Binary Field
I am trying to display a PDF from SQL. All I am getting is garbage that looks like this: %PDF-1.3 %âãÏÓ 37 0 obj << /Linearized 1 /O 39 /H /L... -
[PHP] INT Field in mysql display without .00
$var = number_format($var,0); On Wed, 2003-07-16 at 10:42, fkeessen@planet.nl wrote: -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network... -
Mike Nimer #2
Re: sorting cfgridcolumn by one field, display a different field
no, the sort is sorting the data in the column, not going back to the query
so this isn't possible.
hth,
---nimer
"Adila" <webforumsuser@macromedia.com> wrote in message
news:cvvj2p$oqv$1@forums.macromedia.com...> Hi,
>
> I would like to know if I can use cfgridcolumn to sort by a field other
> than
> what I want to display. For example, this is my query:
> <cfquery name="myQuery"....>
> select rank, description
> from myTable
> </cfquery>
>
>
> So I want to display the "description" but when I click the header of this
> column I want to sort by "rank". Right now it will sort by description. I
> do
> not want to display "rank" because it has no meaning to the user.
>
> <cfgrid query="myQuery" name="mechGrid" rowheaders="no" height="800"
> sort="yes">
> <cfgridcolumn name="description" display="true" > <!---but I want to
> sort
> by "rank" here--->
> </cfgrid>
>
Mike Nimer Guest



Reply With Quote

