Search these areas:
Help
Support Forums
Product Info



-Introduction
-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Views
-Templates
-Components
-Data Analysis
-Members
-Security
-Importing
-Exporting
-FTP
-JavaScript
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-Glossary
-New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

Support Forum



Sorting by HTML fields in grid view.
KevinNicholls asked:
Can someone give me the script code to put into the "Link to page" property of an HTML grid caption that makes it behave consistently with the other sortable captions?  I want this HTML caption to sort by [DealRating] (another field on the grid that I have chosen to hide).

Thanks in advance,

Kevin
 
  brendanx responded:
  That would be:

http://support.westside.com/support/scriptLib/sDetails.view?rowid=52
 
  KevinNicholls responded:
  Thanks Brandan - but I think there is an undeclared variable ("str").

The script throws an error in the folowing section:
.....

    else
        {
        var arrSort = strSort.split(",");
        if (arrSort[0] == str)
            strSort = "-" + str;
        else if (arrSort[0] == "-" + str)
            strSort = str;
        else
            strSort = str + "," + arrSort[0];
        }
.....
I assume that "str" is actually "strSort"?
 
  KevinNicholls responded:
  I mean str == strField.  
  brendanx responded:
  Thanks.  You are right.  I just posted the fix you suggest back to the script library.  Guess I must have tried to clean it up a bit, and then forgot to re-test the code.  
  dougl responded:
  DataWeb considers this issue closed.
If you have additional questions or comments about this issue, please open it again.
If you have questions about a different topic please open a new support question.

Thanks,
DataWeb Support
 
  Please Log On
or create your own DataWeb Account.
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us