Disable sorting in crosstab birt - report

is there a simple way to disable the default sorting in birt cross-tab.

add dummy Group(Dimension) and add it to the design as a hidden column. The cross-tab will sort according to the hidden column.

Related

Vaadin 14 Grid Component Column containing checkbox does not sort

I am using Vaadin 14 grid. This grid contains a number of columns. A few of them need to represent boolean values, hence we use a checkbox component inside that column. This is done by using grid.addComponentColumn method. The text related columns a just added using grid.addColumn
Now we want to enable multisort on the grid. By default the sorting indicators (up/down arrow) in the header are shown for the text based columns but not for the boolean values .
After adding sorting to the boolean column /component column (addComponentColumn(...).setSortable(true) the sorting indicators in the headers are shown, but the sorting itself is not performed when changing the sort direction (none / asc / desc) using the arrows in the header.
How can I make this work?
Thanks in advance!
When you have custom logic for what's rendering in a column, then you also need to explicitly configure how sorting should be handled for that column.
If you're using in-memory data, then you do that using Column.setComparator. If you're using a backend data source, then you should instead use Column.setSortProperty and also ensure that the data provider actually considers the contents of Query.getSortOrders.
You can see an example of this in practice at https://cookbook.vaadin.com/sort-with-renderer.

Filtering data and Display Heading based on filters

being a newbie to SSRS, I am trying to figure out the following:
say for instance I have a dataset which does a :
SELECT [cols...] from [some view]
I want to be able to further filter this based on parameters given from an ASP.NET site (I am using the AJAX control toolkit for the report viewer). There could be x amount of parameters and potentially can be filtered on 1 or more columns.
First question is, how would I filter the dataset and pass along the parameters along with which field the filter should apply to? I may have [col1] and I want to filter it with x values.
Second question Is, I want to be able to group the results per page based upon a column. So for each grouped result set, I want them to be displayed per page (per group per page).
Then on the headers of the page, I want it to display what the page grouping is. How would I do this?
In terms of what have I tried - nothing as I DO NOT KNOW HOW, it is why I am asking the question here to see what the experts (you) can suggest and guide me.
thank you!
To do this you can create Parameters in SSRS, they do not need to be in your query or anything. Then, go to your tablix and click either ROW or column depending on the filter type and set it show/hide visibility. For example I have a report that has personal information, so i have true/false parameter that hides/shows those columns, similar I have one that hides/shows any row with a -1 for the total paid.

How do I sort a bound column by default in a DataGrid?

I have a DataGrid and I want to specify that a column is sorted by default. Using the SQL sort is not working as intended, but when I click the column header it sorts exactly as intended. I just want it to do this by default.
Assuming you're talking about GridView you can use GridView.Sort method to sort the grid programmaticaly. E.g.
MyGrid.Sort("MyColumn", SortDirection.Ascending)

Grouping in asp.net gridview?

I have an asp.net gridview in which I am showing a column of date, the date itself is coming from a sql database table, I have used sorting in that grid and it works perfectly when I click on date column but I want some kind of grouping based on date, like depicted below:
Default gridview look when sorted
21/07/2011
21/07/2011
25/07/2011
25/07/2011
27/07/2011
27/07/2011
What I want is:
21/07/2011
21/07/2011
25/07/2011
25/07/2011
27/07/2011
27/07/2011
I want some kind of separator or blank row that separate groups based on dates, this way data will be more clearly visible. How can I achieve this ?
Thanks
read this article, it shows how you can override Render event to create group header based on your sorting column.
The ListView has grouping like this out of the box.

Edit ASP.NET Dynamic Data visibleTables Display Names?

I've figured out how to use metadata to define the displaynames for table data I want to rename - but I haven't figured out how to do this to the tables themselves - so that when the initial dynamic data menu comes up the menu options are friendly rather than the actual table names. Any suggestions?
See the TableNameAttribute. It takes effect when you reference MetaTable.DisplayName. The attribute can be applied either to the specific table class, or its associated MetadataType class.

Resources