icCube - MDX - How can I create a filter in a Histogram using a button named "MONTH" - mdx

I need to create a filter between some buttons named and a histogram, so for example when I click on "Mois" the histogram will change automatically to show us the Months.

Not sure to understand your question. Each widgets has a set of events that can be generated (Event tab, 'on Row Click', 'on Cell Click ...).
Once the event has been defined with a name, 'histogram-click', in can be used mainly everywhere with #{eventName!defaultValue}. This will be replaced by icCube once the event changes. Check here for a little more documentation.
Also, in Configuration/Report Javascript you can add some code that is called on event generation for more dynamic behavior (e.g. using jquery to change the page).
hope it helps

Related

Linking radio buttons to select groups of schedules in Anylogic

I am trying to link a radio button which allows the model user to select an operating scenario for the simulation (scenario A-E), and I need this radio button selection to provide conditional control to specify which rate schedule is to be applied by each source block.
i.e. if Operating Scenario A radio button is selected, Source 'WestboundArrival' uses arrival schedule A1, Source 'EastboundArrival' uses arrival schedule A2 etc
I am struggling to find a previous example of how to tackle this.
I think that an approach whereby the radio button selection outputs a variable using the 'Action' tab, and using this variable output to select the rateschedule used by the source. I am having difficultly in creating a link.
Any pointers would be welcomed.
You can just add a parameter "choice" and link this to the radiobutton (make sure its an int).
Then in your sourceblock you can add code like this:
choice==0?schedule:schedule1
If you now run your model, the rate schedule used by source will be selected based on your radiobutton selection. You can also change it during runtime.
And please be aware that the radiobutton index is zero based, so the button defined first is 0, next one is 1 etc.
Good luck!

drilldown in splunk dashboard stats table

I have a stats table on a dashboard in Splunk.
How can I implement a drilldown that works on a single column? Ideally, it will open another search in target window.
There are several ways to do drilldowns in Splunk, but to highlight the value of the clicked field (which is how your question sounds to me), set the following using the Drilldown Editor:
Change the "On Click" action
Choose the right App & Dashboard name. Under Advanced, set the target Dashboard's token(s) to the relevant value(s) from your starting point. Note the potions to select various elements from the starting panel on your dashboard. In your specific case, you'll want to assign $click.value2$ to a target token. You may also need to pass other values (either tokens you've created, or inbuilt ones from Splunk). For every additional (or hard-coded value) you need to pass to the target, click the "➕Add New", and repeat the process.
Here's an example final format (be sure to use the correct target and source token names)

Radio buttons used in a rad grid in batch edit mode

I am trying to find any information about using a radio button in a rad grid in batch edit mode. I have created a template column, then added the radio button control, but it doesn't work in batch edit mode (nothing saves back to the DB). Is it even possible? I can't find anything on the Telerik site so I am suspecting its not supported. Thanks.
The Radio list is not supported in the batch editing mode. Such integration simply has not been implemented. The closest available option at this time is using a dropdown list: http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx. Generally speaking, the standard way of editing boolean fields is through a checkbox column and not a radio button list - check the Discontinued checkboxes column.
What the grid does is that it loops through the controls with JS code when cells are opened and closed and determines control types and the proper API to use (e.g., $get().control.get_value() for dropdownlists, or $get().value for standard inputs). You can try implementing similar logic in the batch editing events.
You can try to use a RadRadioButtonList with the two items declared in its markup and its client-side API (see the get_selectedIndex() and set_selectedIndex() method: https://docs.telerik.com/devtools/aspnet-ajax/controls/radiobuttonlist/client-side-programming/radiobuttonlist-object) together with the following approach of working with templates: https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/batch-editing/working-with-templates.
The idea is to have the radio button list in the edit template of the column and to select the correct item in it according to the newly opened cell value on the client, then fetch the selected item from the button list and put it in the grid data source.
You can find one example that you can try using as base in the following thread: https://www.telerik.com/forums/radiobuttonlist-in-gridtemplatecolumn.
Showing a radio button list in the item template is also something that is not supported, as the editing would basically happen in the "display" mode of the cell, and not in the edit mode of the cell. You could try using the server ItemDataBound event and FindControl() (see here: https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-template-column) may let you set initial values based on the data source for the radio button lists without data binding them. Then, perhaps a hidden field or hidden checkbox can be used for the actual data binding (see the template article above). You could also try using the batch editing manager changeCellValue() method on the client-side events of the radio button list, in a fashion similar to this article: https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/batch-editing/how-to/editing-checkboxes.
Another approach you can consider is to use the client-side events of the radio button list and immediately upon change to call a service that will update the database. This may simplify the template handling logic (you could do this in a read-only column) but it goes against the purpose of batch editing to invoke one request with a lot of data, and you would also need to secure the service.
Another online resource to check is
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/batch-editing/how-to/editing-checkboxes

Oracle apex dynamic action event after filter IR

I want to create a dynamic event after filtering or sorting an interactive report, but can't find the event what fits.
The goal is to run a javascript code after the user changed the filter/sorting in an interactive report.
I started with the Change event, but it's not for the filtering or sorting.
Also tried with the Click event, but it's not applied for the filtering LOV.
You're after the "After Refresh" dynamic action, associated with the IR region.
For example:
http://www.grassroots-oracle.com/2018/09/orcle-apex-hide-region-if-no-data-found.html
In Page Designer, right click on your region, create a DA, and that will be the default event type.

Listen for Table Filter Activation

I have a table that has a series of filters across the top of it (as per usual.) This table feeds a massive graph that has multiple series of data in it. In order to hide different series of data I have grouped the information in the tables. I can then click on the minus button to remove a series of data from the graph by collapsing the group, or click the plus button to add it back in the same way. Yes, I know, not the best solution. It was an early effort, what can I say? My default is for all data to be hidden (all groups collapsed).
I have a user (a very important user) who wants to be able to use the filters across the top to find the specific series they are looking for. The filter will find the collapsed series just fine, but the series will not display because it is collapsed.
So, What I'm trying to do is get all groups to auto-expand when the filter is activated. This should work as a stop gap measure until I can simply redesign the chart.
The Problem: I can't figure out how to make Excel notice when the filter has been clicked on (or otherwise used). I've tried using Worksheet_Change and Worksheet_SelectionChange, but neither of them activate the code I have set up in the listener. That code, FYI, checks to make sure the filter is in use and adjusts the groupings accordingly. It should work fine if I can just get Excel to notice it's existence.
I've looked into making my own listener, but there's nowhere in the code I can insert it to make it activate. I just need a listener that will notice when the filter has been changed.
Any thoughts? After an hour of searching I'm stumped...
Okay, after some research I figured out a work around. The big problem here is that changing a filter does not raise any events that can be heard by VBA. Big problem.
Simple Solution: Create something that will activate a listener.
What I ended up doing was finding a cell somewhere outside of my table that wasn't going to be affected by the collapses, then I added a very simple formula (=Count(H:H)). Now whenever the table is collapsed the count is affected which activates the Worksheet_Calculate listener. And voila! I can dynamically change the groupings all I want :-).
So there you have it. If you need to detect a filter being activated via a Worksheet listener, you just need to set up a formula to activate the calculate listener.
Reference: [MSDN Article on the same thing].1 There is apparently a much more robust way to fix this problem as well which is detailed in the article.
You mentioned table, so assuming it's PivotTable you may try,
Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
If it's simply a Targe Range change then,
If Intersect(Target, Range("A2"))