AnsweredAssumed Answered

redirection after a script execution

Question asked by alpha on Mar 8, 2007
Latest reply on Aug 2, 2007 by varsenault
hi guys!

i have created a new action that triggers a script (javascript) that launches an adhoc workflow.
It works (a workflow task is assigned to the pointed user) but when i run the action from the web client, a blank page is displayed with a single information :
org.mozilla.javascript.Undefined@1607a8a

I would like to know how i can set a redirection in javascript to display the browse screen.

Note : i call the script by node ref as follows

<action id="my_action">
            <label-id>sgedd_action_soumettre</label-id>
            <image>/images/icons/myaction.gif</image>
            <action>browse</action>
<script>workspace://SpacesStore/c861637b-cd68-11db-818a-af708f2ce9eb</script>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>
        <action-group id="document_browse_menu">
            <action idref="my_action" />
         </action-group>
Any help is appreciated.

Outcomes