Skip to main content



      Home
Home » Archived » BIRT » Sort Column on the Fly (Urgent, please help!!)
Sort Column on the Fly (Urgent, please help!!) [message #118237] Thu, 26 January 2006 19:08 Go to next message
Eclipse UserFriend
Is there any way to build the sorting mechanism on the fly using the
expression builder or pass the order by parameter to the dataset? For
example, I have mutiple columns and I need to sort each column by clicking
on the column header. Your help is greatly appreciated. Thank you.
Re: Sort Column on the Fly (Urgent, please help!!) [message #147663 is a reply to message #118237] Thu, 23 March 2006 18:14 Go to previous message
Eclipse UserFriend
Originally posted by: brandon.shannon.s1.com

I've done sorting based off of a parameter.

Create a 'paramSortField' parameter, and a 'paramSortDir'.

In the 'beforeOpen' event of your dataset, do something like:

if (params["paramSortField"] != null)
{

this.queryText += " order by " + params["paramSortField"] + " " +
params["paramSortDir"];

}

else

{

this.queryText += " order by our_reference asc";

}

Now, you can pass in your sort field and direction. I would also like to
do hyper-links on column headers...maybe someday soon.

Brandon

"Eric Yang" <sirericyang@gmail.com> wrote in message
news:030b9e5743ffd2c5148df18c1990360c$1@www.eclipse.org...
> Is there any way to build the sorting mechanism on the fly using the
> expression builder or pass the order by parameter to the dataset? For
> example, I have mutiple columns and I need to sort each column by clicking
> on the column header. Your help is greatly appreciated. Thank you.
>
Previous Topic:Getting Parameter Information
Next Topic:Program too complex: too big jump offset
Goto Forum:
  


Current Time: Sun Jun 08 11:14:03 EDT 2025

Powered by FUDForum. Page generated in 0.07688 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top