JQGrid Grouping Event - jqgrid

I would like to know if there is any event that I can use while grouping to add an additional subtotal row(on top of each total) for each grouping key.
By Default afterInsertRow does not fire if grouping is enabled.
Any way to achieve this?
More details updated:
Hi Oleg, currently I am grouping the jqgrid by category column(I am displaying list of products). So for each category I am able to see the total column(summary). This works perfectly fine when I am fetching only active products. But I have a scenario when I am showing Active and inactive products the I want to additionally add another subtotal summary row where I aggregate only the inactive rows. The total summary row for each group should aggregate active and inactive rows and that is working fine as well. I just need a way to display the subtotals summary row only for inactive rows. This subtotal row should sit just above the total row for each group. I hope this makes sense you to.

I hope that I correctly understand your requirements. Probably you can just group by two columns groupField: ["category", "inactive"]. You can additionally consider to display the summary in the header: groupSummaryPos: ["header", "header"]. As the result you will have not exactly what you asked, but the grid will have very close information.

Related

Oracle Apex - Display Items based on number of values

I have a regular link on an Interactive Report:
That links sends the Deal Number information into a different page where the user will be able to update all product information.
As per customer request, I need to use items. Issue is, that I need to show one textfield item per Product, so for example:
If Peter is selected (as per my snap above), I would need to show 2 textfield Items, one for Product 'ABC' and another for Product 'XYZ'.
If John is selected, I would need to show 3 textfield Items, one for 'Product1', one for 'Product2' and another for 'Product3'.
Is there a way to achieve this dynamic display of items?
If so, how can I make Item 1 to show Product1 info, Item 2 to show Product2 info and so on?
Thanks
There are a couple of routes you can take, each one has it's pros and cons.
1. the APEX_ITEM API
This is an API that renders apex items, as part of a sql query or in a static region with pl/sql source (not tested that last option)
Pro:
a lot of flexibility
Cons:
Look and feel is "old" - doesn't look anything like the modern page items that exist in the universal theme and you're stuck with that old look and feel. Lots of hardcoded pl/sql.
2. A fixed number of pre-created items.
Create a number of items and populate only the ones you need, eg P1_PRODUCT1_NAME, P1_PRODUCT2_NAME, ... .If you only need a single product then you're populate only P1_PRODUCT1_NAME, else you'd use as much as you need. With server sided conditions you hide/show the ones not needed/needed
Pro:
All the bells & whistles for look and feel you have in "normal" forms
Cons:
Can't render more products than what you created items for in your page. What if you create fields for 10 products but you need 11 ?
3. Interactive Grid.
I know "the customer wants items" but this component is specifically written for this purpose. I'd definitely consider this as an option - maybe you can make the customer change his mind.
Pro:
Very modern apex component, highly configurable. Check the interactive grid cookbook for a ton of advanced examples.
Cons:
Not items - this is tabular form/spreadsheet layout. Not all end users like them as a form of data entry.

SSRS (VS 2013): How can I have a row group that spans multiple columns?

Hi guys, I'm trying to create a report similar to the picture shown. I need to be able to group by Risk Category and display the line 'Risk events for Risk Category X' for each risk category either above or below column headings.
I have spent a few hours playing with row groups but I've unable to display the group header spanning across the columns.
Is this even possible with SSRS? Any ideas on how to do this will be much appreciated.
thanks
Cam.
I think all you need to do is put the header label in the first column you want it to be seen under, then use the merge cells function to bridge it across however many columns you need.

Visual Studio 2013 Report RDLC with related datasets

I currently have two tables in a database "customer" and "pricelist" where a customer can have multiple pricelist items linked to their ID.
I'm trying to build a report in VS2013 where it lists all customers [alphabetically], then all of their pricelist items [alphabetically], then page break between each customer.
I've tried setting it up to use a dataset of each table, which doesn't let me group them together, and I've also tried joining the two tables into one view which was the closest I had gotten. The problem was that for each item, it printed the customer name and a page break, because of the inner join i was doing where each record has the customer name on it.
Please help me figure this out! I just want to be able to display the data as such;
CUSTOMER NAME
.........ITEM 1.....PRICE
.........ITEM 2.....PRICE
.........ETC
PAGE BREAK
CUSTOMER NAME
.........ITEM 1.....PRICE
.........ETC.
To group data in a report:
Click the Design tab.
If you do not see the Row Groups pane , right-click the design surface and click view and then click Grouping.
From the Report Data pane, drag the Date field to the Row Groups pane. Place it above the row called (Details). Note that the row handle now has a bracket in it, to show a group. The table now also has two Date columns -- one on either side of a vertical dotted line.
From the Report Data pane, drag the Order field to the Row Groups pane. Place it below Date and above (Details).
Note that the row handle now has two brackets in it, to show two groups. The table now has two Order columns, too.
Delete the original Date and Order columns to the right of the double line. This removes this individual record values so that only the group value is displayed. Select the column handles for the two columns, right-click and click Delete Columns.
Switch to the Preview tab to preview the report. It should look similar to the following illustration:
The answer was retrieved from this MSDN page

Implementing drill down in Kibana 4

Is it possible, and if so, how, to implement drill down in Kibana 4?
For example, lets say a dashboard has a pie chart which represents products.
Beneath that, there could be a table which shows component parts which are used to make products, together with supplier name, cost, availability, and other details. Clicking a product in the pie chart will filter the table to only show parts for that specific product. Selecting the supplier field would drill to another table showing the details for the supplier.
This requires that there be a multi-column table widget which would be used to display the details for each part, and that each column in the table could potentially be a link to another table.
In addition, lets say that there are three charts at the top of the dashboard. Clicking on each one should swap out the area below to display a table with a specific query and data columns relevant to the selected chart.
Is this kind of functionality abailable in Kibana?
You can mostly achieve this type of functionality in Kibana 4. What you'll want to do is create a search that has the fields that you want to display and save that. Next you'll create your visualizations that have the things you want to drill down on.
Finally, create a dashboard with all of the visualizations on it, and then also add the Search (when you hit +, there's a tab that says Searches. Choose your saved search there.
When you click on your widgets, it will start adding filters and refreshing the page, including your "search".
On the search widget that's on the dashboard, you can click on the rows and they will expand to show the fields. Next to each field is a +/- that will let you filter to that value or exclude that value.
I Think Kibi has this feature But again I think it is for relational database tables
Please refer to this issue
https://github.com/elastic/kibana/issues/4439

How to hide rows if one of the cells is a duplicate of the one above it

I'm trying to filter a contact list that contains each contact's name, company, email address, etc. As it currently is, the contacts are sorted by their company name and I have various contacts from the same company. I want to be able to have only one contact from each company.
Here's how the Google spreadsheet looks: . The company names appear in column G. Notice how "23andMe" appears several times? This is because the first 5 contacts work at 23andMe. I only want to have 1 of those contacts from that company in this list. Throughout the rest of the spreadsheet, I have numerous contacts at the same company.
How can I view only one contact per company? Should the formula hide the row if the cell in column G (the company column) is a duplicate of the cell above it? If so, what is this formula?
One method would be to use a helper column, and then apply the filter tool to the data. So something like this in row 1 of a spare column:
=ArrayFormula(IF(ROW(G:G)=1,"Display",IFERROR(ROW(G:G)=MATCH(G:G,G:G,0))))
which will apply TRUE and FALSE values according to whether that row should be hidden or not. Apply the filter (funnel icon second from the right on the toolbar) to the whole data set, and you can toggle the "Display" column to only displaying TRUE values.

Resources