<?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: download file in activiti UI in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3180#M1060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. That doesn't seem to work though. In my case, a new window is opened instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; buttonClick(ClickEvent &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;logger&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;.info(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"preparing download resource"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; String &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;formProperty&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.getValue();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// the first line is the filename&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.substring(0, &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.indexOf(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;'\r'&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.substring(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.indexOf(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;'\r'&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) + 2, &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.length());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;logger&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;.info(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"downloading file "&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; StreamResource &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;resource&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; StreamResource(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; StringStreamSource(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;, ExplorerApp.&lt;EM&gt;get&lt;/EM&gt;());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// resource.setMIMEType("text/plain");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;resource&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.setMIMEType(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"application/octet-stream"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; ExplorerApp.&lt;EM&gt;get&lt;/EM&gt;().getMainWindow().open(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;resource&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"downloadWindow"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//downloadWindow.setVisible(true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 20:09:31 GMT</pubDate>
    <dc:creator>msaballa</dc:creator>
    <dc:date>2017-01-18T20:09:31Z</dc:date>
    <item>
      <title>download file in activiti UI (vaadin 6)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3178#M1058</link>
      <description>Hi All,Need your help with this one. Has anyone tried downloading a file in activiti BPM?I'm new with activity BPM and original developer of the code created a customised button to retrieve csv files in activiti BPM as below.public void buttonClick(ClickEvent event) {logger.info("preparing download</description>
      <pubDate>Tue, 17 Jan 2017 02:05:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3178#M1058</guid>
      <dc:creator>msaballa</dc:creator>
      <dc:date>2017-01-17T02:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: download file in activiti UI</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3179#M1059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rathe than answering the question you ultimately ask, I think the easiest way for you to force a save to file dialogue is to simply change the mime type from text/plain to application/octet-stream or some other mime type that is perceived to be binary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:42:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3179#M1059</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-18T17:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: download file in activiti UI</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3180#M1060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. That doesn't seem to work though. In my case, a new window is opened instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; buttonClick(ClickEvent &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;event&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;logger&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;.info(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"preparing download resource"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; String &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;formProperty&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.getValue();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// the first line is the filename&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.substring(0, &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.indexOf(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;'\r'&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.substring(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.indexOf(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;'\r'&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;) + 2, &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.length());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;logger&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;.info(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"downloading file "&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; StreamResource &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;resource&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; StreamResource(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; StringStreamSource(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;csvdata&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;, ExplorerApp.&lt;EM&gt;get&lt;/EM&gt;());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// resource.setMIMEType("text/plain");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;resource&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.setMIMEType(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"application/octet-stream"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; ExplorerApp.&lt;EM&gt;get&lt;/EM&gt;().getMainWindow().open(&lt;/SPAN&gt;&lt;SPAN style="color: #6a3e3e; font-size: small;"&gt;resource&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"downloadWindow"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//downloadWindow.setVisible(true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:09:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3180#M1060</guid>
      <dc:creator>msaballa</dc:creator>
      <dc:date>2017-01-18T20:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: download file in activiti UI</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3181#M1061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, ok. Havent spent much time with the explorer app.&lt;BR /&gt;Probably need to play around with it. I don't suppose you can attach your project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 22:35:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3181#M1061</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-18T22:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: download file in activiti UI (vaadin 6)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3182#M1062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think I can. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, would you think the one you advised me with won't work in vaadin 6.8.8? That's the current version I have now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 22:17:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/download-file-in-activiti-ui-vaadin-6/m-p/3182#M1062</guid>
      <dc:creator>msaballa</dc:creator>
      <dc:date>2017-01-19T22:17:54Z</dc:date>
    </item>
  </channel>
</rss>

