Skip to main content
Contributor
Aug 4, 2023 4:12 PM UTC
Solved

Can we programmatically change the WF POV?

I'm trying to change the WF POV via DashboardExtender BR. I noticed there is Enum XFSelectionChangedPovActionType but I don't see any object which can make a use of this. Any tips?

RobbSalzmann
Employee - Advisor
Aug 4, 2023 4:57 PM UTC

You can change the workflow scenario and time programmatically:
BRApi.Workflow.General.SetSelectedWorkflowView(si, profileName, scenarioName, timeName)

 

6 replies

Contributor
Aug 4, 2023 4:32 PM UTC

Have you tried using the POV Action in Action section that allows you to change POV and Workflow 

Omkareshwar_0-1691166061362.png

 

kwojszAuthor
Contributor
Aug 4, 2023 4:36 PM UTC

Yes, I'm aware of this feature, but I want to have this functionality in the BR. My use case is not linked to dashboard in fact. I'd like to change WF POV on demand. I wonder if there's enum, shouldn't there be any method/property which will make use of this enum?

Contributor
Aug 4, 2023 4:53 PM UTC

I don't have any idea about that I can try doing the same on my system If I can get any success, I'll let you know.

RobbSalzmann
Employee - Advisor
Employee - Advisor
Aug 4, 2023 4:57 PM UTC

You can change the workflow scenario and time programmatically:
BRApi.Workflow.General.SetSelectedWorkflowView(si, profileName, scenarioName, timeName)

 

kwojszAuthor
Contributor
Aug 8, 2023 2:47 PM UTC

Thanks Rob! This actually didn't help with my use-case (I was able to solve it differently, but this helped to find a bug in my code), but still, good to know this method!

Newcomer
May 15, 2025 5:55 AM UTC

kwojsz​ 

Can you elaborate on how you solved it?

I have something similar, where in the BR I need to update the WF, but it seems it is only happening after the BR has been finalised, and it should happen within the BR in order for me to utilise it.

Thank you.