Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » New to Cross tab - group sort order on a parameter(Dynamically set or toggle group sort order for a cross tab ble)
New to Cross tab - group sort order on a parameter [message #1722259] Wed, 03 February 2016 15:55 Go to next message
james allen is currently offline james allenFriend
Messages: 3
Registered: February 2016
Junior Member
New to Birt, so kinda running before I can walk.

Have a crosstab with :
areaid, customerid, customername , postcode.

Totalling nettsales for each customer by year.

To show details (name & post code) for a customerid I've had to create a grouping for each field for the datacube and included all groups on the crosstab.

Besides not being clear on how the default sort order is achieved, I've managed to get a crosstab to be ordered by postcode (ascending alphabetically) - as default.

I've added a sort on: PostcodeGroup/postcode, with key["Nettsales_postcodegroup/Postcode"] - Descending, to reorder the report so customers descend by yearly totals.

Is there anyway to either:
toggle the "group level" sort on\off with code
or
assign the sort with code?

The plan is to link a report parameter to switch between the two sorts.

I've search for dynamic crosstab sort beforefactory and can't find much that makes sense - admittedly don't have enough knowledge to sus this one out.

Any advise welcome.

James

Re: New to Cross tab - group sort order on a parameter [message #1722266 is a reply to message #1722259] Wed, 03 February 2016 16:21 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 02/03/2016 09:06 AM, james allen wrote:
> New to Birt, so kinda running before I can walk.
>
> Have a crosstab with :
> areaid, customerid, customername , postcode.
>
> Totalling nettsales for each customer by year.
>
> To show details (name & post code) for a customerid I've had to create
> a grouping for each field for the datacube and included all groups on
> the crosstab.
>
> Besides not being clear on how the default sort order is achieved, I've
> managed to get a crosstab to be ordered by postcode (ascending
> alphabetically) - as default.
>
> I've added a sort on: PostcodeGroup/postcode, with
> key["Nettsales_postcodegroup/Postcode"] - Descending, to reorder the
> report so customers descend by yearly totals.
>
> Is there anyway to either:
> toggle the "group level" sort on\off with code
> or
> assign the sort with code?
>
> The plan is to link a report parameter to switch between the two sorts.
>
> I've search for dynamic crosstab sort beforefactory and can't find much
> that makes sense - admittedly don't have enough knowledge to sus this
> one out.
>
> Any advise welcome.
>
> James
>
>
Ask BIRT questions in the BIRT forum.
Re: New to Cross tab - group sort order on a parameter [message #1722272 is a reply to message #1722266] Wed, 03 February 2016 17:05 Go to previous messageGo to next message
james allen is currently offline james allenFriend
Messages: 3
Registered: February 2016
Junior Member
Could of swore blind I posted this in the Birt forum, has it defaulted to newcomers?
Re: New to Cross tab - group sort order on a parameter [message #1722276 is a reply to message #1722272] Wed, 03 February 2016 17:28 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 02/03/2016 10:05 AM, james allen wrote:
> Could of swore blind I posted this in the Birt forum, has it defaulted
> to newcomers?
Someone with the power to do so can move it over there. I can't guess
what happened. (Sorry.)
Previous Topic:cross tab show/hide grouping level not working
Next Topic:Print background image with browser print function
Goto Forum:
  


Current Time: Fri Apr 26 01:02:36 GMT 2024

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

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

Back to the top