Skip to main content
August 4, 2023
Solved

Can we programmatically change the WF POV?

  • August 4, 2023
  • 3 replies
  • 0 views

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?

Best answer by RobbSalzmann

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

 

3 replies

August 4, 2023

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


Omkareshwar_0-1691166061362.png

 

kwojszAuthor
August 4, 2023

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?

August 4, 2023

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.

August 4, 2023

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

 

kwojszAuthor
August 8, 2023

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!

May 15, 2025

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.