Forum Discussion
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.
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
- 5 months ago
- 11 months ago
- 3 years ago
- 4 years ago