• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Sorting by dynamic table column heading

New Here ,
May 17, 2007 May 17, 2007

Copy link to clipboard

Copied

I am trying to do the same as cindypsych, in the post below. Can some one help me with my code please. Thanks in advance. I want to sort each column by clicking on the column head.
..
TOPICS
Advanced techniques

Views

310

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 17, 2007 May 17, 2007

Copy link to clipboard

Copied

Hi,

Whats wrong with your code mate?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 17, 2007 May 17, 2007

Copy link to clipboard

Copied

I am trying to sort each column when it is displayed on the screen. My code keeps telling me Element TailNum is undefined in URL.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 17, 2007 May 17, 2007

Copy link to clipboard

Copied

LATEST
Your query is looking for 2 URL parameters:

WHERE "TailNum" = #URL.TailNum# ORDER BY #URL.SORTBY#

But according to the links at the top of each column, you're only passing one:

TestSort.cfm?SORTBY=Series=asc

You probably want something more like this:

TestSort.cfm?TailNum=#URL.TailNum#&SORTBY=Series

This way you pass TailNum each tyime.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation