Dynamic Column Sorting
I regularly receive requests to provide column sorting functionality in report designs. To do this I simply create a dynamic 'order by' clause controlled by some hidden parameters and column hyperlinks. Admittedly, I use this method on relatively simple and fast queries because the solution requires re-execution for every sort selection.<br />
Here's how it's done: (after you've created a report with a table )<br />
<br />
1 - Create a Boolean parameter for each column to be sorted.<br />
<br />
2 - Add script to the beforeOpen of the Data Set.<br />
<br />
3 - Create hyperlinks for each column corresponding to the parameters you created in step 1.<br />
<br />
That's all there is to it.<br />
<br />
I've attached an example built on the Classic Models database for your enjoyment.
Here's how it's done: (after you've created a report with a table )<br />
<br />
1 - Create a Boolean parameter for each column to be sorted.<br />
<br />
2 - Add script to the beforeOpen of the Data Set.<br />
<br />
3 - Create hyperlinks for each column corresponding to the parameters you created in step 1.<br />
<br />
That's all there is to it.<br />
<br />
I've attached an example built on the Classic Models database for your enjoyment.
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management