Forum Discussion
Can you expand on your thought process?
To understand, you wanted to execute particular function in a cube view which is embedded to dashboard,
In a dashboard, you can call a BR and pass function which you can try.
This is one of the solution dashboards which is embedded to the main dashboard. You can call your BR with particular function.
- PFowler4 months agoNew Contributor II
Thank you for following up. To clarify I have a button in my dashboard header dashboard that does a calculation (the button is tied to a DM Step --> which is tied to a Finance BR)...Ideally I want the functionality of that button to only perform the function on a specific cv that is tied to one of the tabs in the dashboard. Ideally, I'd want the button to be able to identify which tab the user is looking at currently and then perform the function/calculation based on that. A part of me does not thing it is possible but I thought to ask.
- pranav464 months agoContributor II
Seems like you need to create a combo box then beside it a button which can pick a value from combobox & execute BR SEQ.
- JackLacava4 months agoHonored Contributor
Unfortunately this is not currently possible, as far as I can see, with simple traditional Business Rules. You cannot detect the selected tab and you cannot invoke rules when an embedded dashboard is displayed.
It might be doable with Dynamic Dashboards, although I've not tested it. The strategy would roughly be:
- assign each CV to individual Dashboards of type Embedded Dynamic, and assign those to the dashboard that currently contains the CVs (which get removed)
- create a service factory and a Dynamic Dashboard Service - which will be automatically invoked every time these dashboards load (so hopefully, when their tab is selected)
- in the service, check the name of the dashboard being loaded, and if it's one of those containing CVs, set a Parameter to contain such name
- In the BR triggered by your button, retrieve that Parameter value
It's quite a bit of work, and requires you to be familiar with all these advanced concepts (and be on v8+, preferably 8.2+). It might be more straightforward to simply have a Parameter that contains the CV names, bind it to a Combobox to allow users to select the one they're looking at, and then pick that value up from the rule triggered by the button. It's less elegant but also less work.
Related Content
- 4 months ago
- 10 months ago
- 3 years ago
- 4 years ago