Forum Discussion

kwojsz's avatar
kwojsz
New Contributor III
2 years ago
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?

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

     

6 Replies

  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

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

     

    • kwojsz's avatar
      kwojsz
      New Contributor III

      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!

      • KennethNL's avatar
        KennethNL
        New Contributor II

        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.

  • kwojsz's avatar
    kwojsz
    New Contributor III

    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?

    • Omkareshwar's avatar
      Omkareshwar
      Contributor II

      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.

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