Forum Discussion
Hi EricOsmanski, I'm not changing the Workflow POV right now; I was just asking how to do it. What the button currently does isn't important. Whatever it does, I want the Workflow POV to change when it's clicked. I tried using the POV Action options you mentioned, but they don't seem to work.
For example with the POV Action set like this:
when pressing the button from the following workflow step:
there is no change in the workflow, it stays on [Admin.Reset Scenario/RF_M11/2026]. Am I doing something wrong with the POV Action setting?
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 selectionResultUsing 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.
Related Content
- 3 months ago
- 3 years ago