ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums OroCRM OroCRM – How do I? Questions Open new tab workflow

This topic contains 1 reply, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 2 years, 1 month ago.

  • Creator
    Topic
  • #57576

    arash.zamani
    Participant

    I want to open the route in post action item of workflow (transition definition) in the new tab. does it possible? if yes, how?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #57577
    Yevhen Shyshkin
    Yevhen Shyshkin
    Participant

    Hello.

    You should implement new action for that.

    From backend side your action should generate appropriate URL and pass this URL to frontned via result property (see redirect action in Oro/Bundle/WorkflowBundle/Model/Action/Redirect.php for example).

    From frontend side you should add JS listener to transitions_success event and open new tab with URL passed from backend (see transition executor in Oro/Bundle/WorkflowBundle/Resources/public/js/transition-executor.js for example).

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

ssossossosso