• Navigation target after Workflow Action

    By Stefan Neth 1 decade ago

    I implemented a simple workflow into my application. I have a custom component/ form with the workflowcomponent and I have a page with a view panel and a extlib dialog where my worklflow custom component/ form pops up. When I submit the form navigation goes to the previous page but for obvious reasons I want to stay on the same page. I found no property to change this ? Can ypu enlight me on this topic ? Thanks !!! The workflow itself works great and is easy to implement. Good stuff :-)

    • You can achieve this by navigation rules

      By Qian Liang 1 decade ago

      Thanks for your interest for this project!

      In your XPage, you may have the following code. This will make your XPage jump to previous page. If you want to stay at the same page after submit, you can just remove these code.



              
          

      • Navigation target after Workflow Action

        By Stefan Neth 1 decade ago

        Thanks for your reply. Yes there was a Navigation rule on my Xpage. I removed it an I noticed that now my Dialog with the form that holds the workflow does not close anymore when I use the workflow action. I have other buttons implemented that use for example 

        dsActivityForm.save();

        var d:javax.faces.component.UIComponent = getComponent("dialogActivityForm");
        d.hide("panelActivityView");

        to close the dialog and refresh the component. Can I achieve this for the workflow action as well ?

        Thanks !!!