<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Redirection after onActionFormDialog in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290301#M243431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I Bob, thanks for your reply. I tried what you suggest, but the problem is that the success function is executed once the action is finished and the popup has close. So at that time the parameters are not available anymore (This is my guess, as i executed the javascript with the browser console opened and it works as you suggested).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply and help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 18:38:52 GMT</pubDate>
    <dc:creator>jmoyano</dc:creator>
    <dc:date>2014-01-13T18:38:52Z</dc:date>
    <item>
      <title>Redirection after onActionFormDialog</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290299#M243429</link>
      <description>Hi, i am trying to create an action that when clicked, it displays a popup to gather a couple of parameters from the user, and then when the user clicks the "OK" button he get redirected to another page (this page needs the two parameters mentioned before to be passed in the url). I can't find how t</description>
      <pubDate>Mon, 13 Jan 2014 16:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290299#M243429</guid>
      <dc:creator>jmoyano</dc:creator>
      <dc:date>2014-01-13T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection after onActionFormDialog</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290300#M243430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You will need some custom javascript called when someone clicks OK on your dialog to do window.location type redirect. You have available the "success" and "failure" parameter in the Action which allows you to define a callback that will be executed and that can do the redirect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:16:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290300#M243430</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-01-13T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection after onActionFormDialog</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290301#M243431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I Bob, thanks for your reply. I tried what you suggest, but the problem is that the success function is executed once the action is finished and the popup has close. So at that time the parameters are not available anymore (This is my guess, as i executed the javascript with the browser console opened and it works as you suggested).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply and help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 18:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290301#M243431</guid>
      <dc:creator>jmoyano</dc:creator>
      <dc:date>2014-01-13T18:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection after onActionFormDialog</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290302#M243432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. Here's the detailed plan. When you click OK the dialog sends what you have input to a webscript. This web script sends a response (usually JSON but thats up to the way you define it) back to the caller and that response goes to success or failure callback function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, write a webscript that your dialog will post to that returns the parameters you send to the caller (just iterate through the args array and reflect it back in the response JSON). Then in the nn success function, pick up the JSON get the args and redirect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should do the job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 20:33:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290302#M243432</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-01-13T20:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection after onActionFormDialog</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290303#M243433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bob, I finally managed to make this redirection with some javascript calls that i add to my custom component that is rendered in the form. However, seems that your solution might be better, but I am a completely newbie in alfresco, and I don't know how to do what you suggested me. Is there any similar example to what you suggest that I can look at? Not the javascript or webscript itself, but the configuration to set this flow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards and thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 13:49:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/redirection-after-onactionformdialog/m-p/290303#M243433</guid>
      <dc:creator>jmoyano</dc:creator>
      <dc:date>2014-01-14T13:49:17Z</dc:date>
    </item>
  </channel>
</rss>

