Forum Discussion
KarlT
Contributor III
You can use something like this at the end of your dashboard extender to ensure it reflects the updated workflow POV
Dim wfInfo As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si, si.WorkflowClusterPk.ProfileKey)
BRApi.Workflow.General.SetSelectedWorkflowView(si, wfInfo.Name,
brapi.Finance.Members.GetMemberName(si,dimtypeid.Scenario,si.WorkflowClusterPk.ScenarioKey),
"2028")
Dim selectionResult As New XFSelectionChangedTaskResult()
selectionResult.WorkflowWasChangedByBusinessRule = True
Return selectionResult
Using the POV action should generally work fine, but for this use case with the Range scenario and the timing it won't work. The above code should achieve your result though.
ckattookaran
2 months agoVIP
You do not need the ProfileInfo as he is navigating away from the current one. I would just type the name in there. Keep in mind to use the long names (profileparent.profilename). Remember that BRApi (setselectedworkflow) only works using a dashboard extender rule, as it needs a return to trigger some kind of cache refresh. I'm unable to figure out what cache refresh can trigger this from any other rule.
Related Content
- 12 months ago
- 10 months ago
- 6 months ago