- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 05:33 AM
Workspace: Risk Workspace
Variant: Operational risk manager homepage
Hi all, It's me - the every day workspace guy here.
Pretty simple thing. Just trying to change order of options in dropdown component related to heatmap component. So that by defaut "By residual" option would be selected and show first when user opens workspace.
From ui builder by configuring Dropdown 2 named component list item script, I managed to change order of these options in dropdown menu by changing var items in row 7 the other way around what was in oob, but still "By inherent" is chosen by default.
As we can see here, order changed but "By inherent" is selected by default.
Question:
Do I need to change something to that dropdown menu component script or what should I do so that "By residual" would be default chosen in risk heatmap dropdown menu in risk workspace, Operational risk manager homepage variant?
Best,
Miikka
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 12:06 AM
Found solution to this. I'll write it here so others can benefit from my knowledge.
Configure order of dropdown menu items:
1. Choose dropdown component from Ui builder
2. Choose config on the right menu
3. Open list item script
4. Change order in var items the way you want them to be seen
In my case i changed "id":"inherent","label":"By inherent" and "id":"residual","label":"By residual" other way around.
function evaluateProperty({api, helpers}) {
var items = [{"id":"residual","label":"By residual"},{"id":"inherent","label":"By inherent"}];
if(api.data.plugins_installed.output && api.data.plugins_installed.output.isAdvancedRiskInstalled == true && api.data.plugins_installed.output.isAdvancedRiskEnabled == true){
items.push({"id":"target","label":"By target"});
}
return items;
}
Configure what heatmap is selected as default in dropdown menu:
1. Select "client state" from bottom left from ui builder
2. Search for "heatmapType"
3. Change Intial value to heatmap value wanted (you can find this value in list items script described before)
Thumbs up if I helped you!
Have a good one.
-Miikka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 12:06 AM
Found solution to this. I'll write it here so others can benefit from my knowledge.
Configure order of dropdown menu items:
1. Choose dropdown component from Ui builder
2. Choose config on the right menu
3. Open list item script
4. Change order in var items the way you want them to be seen
In my case i changed "id":"inherent","label":"By inherent" and "id":"residual","label":"By residual" other way around.
function evaluateProperty({api, helpers}) {
var items = [{"id":"residual","label":"By residual"},{"id":"inherent","label":"By inherent"}];
if(api.data.plugins_installed.output && api.data.plugins_installed.output.isAdvancedRiskInstalled == true && api.data.plugins_installed.output.isAdvancedRiskEnabled == true){
items.push({"id":"target","label":"By target"});
}
return items;
}
Configure what heatmap is selected as default in dropdown menu:
1. Select "client state" from bottom left from ui builder
2. Search for "heatmapType"
3. Change Intial value to heatmap value wanted (you can find this value in list items script described before)
Thumbs up if I helped you!
Have a good one.
-Miikka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 06:28 AM
Hey @Miikka_M,
I m using Heatmap visualization and in that created a metric on Case Table where the metric is like Created and Updated vs HR Service.
But When I get the count in Heatmap its correct on Visual, but as soon as Drilling down i m getting the wrong count i.e. list of cases
attaching the snapshot of it.
Suppose i click on the "99" then its giving me the o/p in list as
Please help me with this, How should i solve this ?
Its real-time scenario.