I have some problem with function Count(). I want to make this report
Table example
In first column use function Count() in second some group of element. How I can create this?
You should use Processing Duplicates property of the text component. Set it to Merge based on Tag. The Tag property should be set to Grouping condition.
Related
I have a default column filter and I'm wondering if there is a way from excluding it from one column.
You can check an example from React-table that I'm using: https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/filtering
The 'DefaultColumnFilter' is being used in useTable hook and all columns are using it by default
Is there a way from excluding one column from using it?
Two options -
If you don't want the given column to have filters, then use disableFilters flag on that column in options.
If you want to have different type of filter for the given column, then use Filter property in the given column(as shown in provided example)
As shown in the image if i mention {$}, it will take the current columns value and pass as a parameter to the queryString(URL). I am not able to figure out how to pass the first column (TM_TRANSMISSON_ID) value here, I tried the following and failed:
1.{$0}
2.{$TM_TRANSMISSION_ID}
3.[TM_TRANSMISSION_ID].
Can you create a calculated column so that both values are in the same column? Since that is a column property I believe you can only access the specific column.
I have a large grid and I need to add a count in the footer, to calculate count of non-nullable and not empty cells in column, but standart count aggregate gives only completed total count result. In custon templates I find ability only for using these completed aggregation functions (min, max, sum, count...). Is there any ideas how to count only filled cells in column and display result in footer of grid?
You can configure the columns.footerTemplate property as a function, and use some custom logic to count the non-null fields, then display it in the footer of the respective column, e.g.:
Example
If someone interests how I have solved it, I will answer in general.
I have created custom column in result's data (before binding it to grid) with values 1 or 0: 1 - if I want to count current row in result; 0 - if I don't. Then I have used sum aggregate function for this column instead count. And then I just only have not displayed this column in grid for users.
This approach gives ability to write your custom logic outside of kendo footer template, you just use count (in this case sum) for results of your custom logic.
All other approaches and solutions, which I've tried did not help.
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.
my application needs to allow users to insert rows below the current datagrid row. My solution is to to add a row to the dataproviders collection. This works, but the row does not appear beneath the current row the user clicked on.
The Datagrid has a default sort order (date ASC), which re-orders the data...so this seems to affect the position of the row in the grid.
Any ideas how to fix this?
Two possible answers:
1. define your own sort function that sorts according to item order in dataprovider (i.e. it does nothing), and assign it to the sortFunction property
2. simply comment out the sorting of the data inside the component.