How to get filtered and sorted result set from Clarity Datagrid? - vmware-clarity

I'm trying to get the filtered sorted data out of an angular clarity datagrid.
The #Output provided by the 'clr-datagrid' component 'clrDgRefresh' only provides the specifics around pagination, sorting and filtering.
I wanted to get the data out of the filtered table to show addresses on a google map and aggregate some specific metrics about the filtered table ie average, max, min etc.
Is here a way to do this? Or should I start on a PR to extend 'clr-datagrid' with an additional #Output?

I got the datagrid in question as a ViewRef. And found an 'item' member on the class that has what I need.

Related

Aggregation tool in BIRT : display a count like number on a table column

It must be very easy, baut i can't display a very simple filtered agregation on a table header row in BIRT 3.7. I manage to use count aggregation on groups headers or footers, buet not a filtered aggregation on a simple column table.
USE case : my sql statement car return the string value "ERROR..." for a string field name TEST. The query returns 734 results. My table display all the results.
In the header row i just want to diplay a count of which would be in SQL a count like "ERROR%".
I can't manage to do that whit the aggregation tool !
aggregation builder
Many thanks for your help.
Julien
as i can't manage to find the correct way of filtering my aggregation, i provide the results from my SQL request. By i'd be glad to find the dynamic way of filtering it.
Here is an image of a column that contains strings with "ERR". Le top field in red is my aggregation field served by a slq like '%ERR :%' statement.
example

Need help in apply kibana query

I want to know the query for kibana, i tried terms and agg, but didnt get right output, so need to filter the data based on distinct query in kibana.
I want to apply query in following input data in elasticsearch
Rows and columns
CELLID|MCC|MNC|
1222|405|861|
1222|405|861|
1222|405|122|
1233|406|861|
1233|406|861|
1224|407|777|
1224|407|777|
need to apply query such a way, it will remove the same CELL ID with different MNC, so expecting output like this
CELLID|MCC|MNC|
1233|406|861|
1233|406|861|
1224|407|777|
1224|407|777|
As you know, it's impossible to have such row vs column infrastructure within Kibana graphs as of now. Cos this feature is yet be made to the new versions as an enhancement.
But then if you're simply trying to print out the count|sum or let it be whatever the aggregation you need, you can have a Data Table visualization with a metric of count and then within your buckets you could define multiple terms-aggregation. In your case, you should have CELLID|MCC|MNC being split by terms-aggregation which should do the job for you. Hope this helps!

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.

Flexicious Filter not working correctly

I'm using a Flexicious Ultimate datagrid for visualising some data.
I'm using the built in Filter field for some columns.
This is working fine if I don't use any labelfunction on the provided cell data.
The Flexicious filter data is automatically build from the data in the cells of that specific row. When I use a labelfunction on the cell data the filter values are shown correct, but when I select to show a specific value, the datagrid return 0 records.
Example:
The dataprover.Price = 25
In use a currency formatter so the cell data would be €25
The filter fields of the datagrid show all the different datavalues from all the cells (distinct).
In this case it would be ALL & €25. When I select to only show the fields with price = €25 the datagrid returns 0 records.
I can't seem to find the correct settings to get this fixed.
Is there anyone who can help me with this problem?
Thanks!
Have you tried setting useLabelFunctionForFilterCompare=true?

Genexus: Sort a Top10 list (grid) using a variable

I have the following issue: I'm generating a Top10 list of items, based on how many times each item has been sold. I can calculate that number and store it in a variable correctly, but when I try to sort the grid by that variable programatically, Genexus won't let me (ofcourse I can click on that row and it'll get sorted correctly, but that's not what I want).
As far as I've read, grids can't be sorted using variables for some reason, is there a workaround for this?
You should use a Data Provider to load a SDT with the Top10 list of items, sorted by solded items. Then show the output SDT in a grid.
You should try to find a way to load them in the proper order.
If that is not posible, create an SDT Collection with the items and use the method sort.
After that, change the grid to a non-base table grid and use the load event to load the content of the collection.

Resources