<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Show a generated case document in the userinterface</title><link>https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface</link><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;is it possible to show a case document (.pdf) by using the documentviewer(!)?&lt;/p&gt;
&lt;p&gt;So far the document was always saved in the webcontet folder and it worked fine by using the documentviewer with the following code:&lt;/p&gt;
&lt;p&gt;"&amp;lt; pe:documentViewer height="800" width="500" library="ivy-webcontent" name="folder/file1.pdf"/&amp;gt;"   &lt;/p&gt;
&lt;p&gt;Source: &lt;a href="http://answers.axonivy.com/questions/38/how-to-show-a-project-image-with-p-graphicimage"&gt;http://answers.axonivy.com/questions/38/how-to-show-a-project-image-with-p-graphicimage&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However... for now the document is saved in the files/application  folders where obviously the documentviewer has no access, therefore im wondering if there is another opportunity to show the pdf in the userinterface?&lt;/p&gt;
&lt;p&gt;It seems that the documentviewer does not support this requierement.
I tried to copy the case document, by using a script step, in the web-inf folder but it's not working.&lt;/p&gt;
&lt;p&gt;Thanks for your time!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 27 Jun 2016 08:52:25 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface#1846</link><description>&lt;p&gt;The CMS is approach is not a static solution. You can write a new CMS entry with the PDF file at the end of your task instead of storing it in fils/application.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 27 Jun 2016 08:52:25 -0400</pubDate><guid>https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface#1846</guid></item><item><title>Comment by Spfl_ on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface#1836</link><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thank you very much for your answer.&lt;/p&gt;
&lt;p&gt;To summarize the requierement again: The PDF file will be automotically generated at the end of the task under the files/application folder, the documentViewer has no access to that location. But in my case it's necessary that the file will be generated as a case file and therefore dynamicly.&lt;/p&gt;
&lt;p&gt;The workarounds you offered seem to be for static documents and therefore not an option for my case.&lt;/p&gt;
&lt;p&gt;Thanks so far.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Spfl_</dc:creator><pubDate>Thu, 23 Jun 2016 15:56:38 -0400</pubDate><guid>https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface#1836</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface/1834</link><description>&lt;p&gt;two possible workarounds which should work:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;remove the library attribute and copy the PDF into the engine webcontent folder: [engineDir]/webapps/ivy . Just as you already tried, but ensure that you use the correct webcontent+library combination.&lt;/li&gt;
&lt;li&gt;persist the PDF in the CMS and load it from there via &lt;code&gt;&amp;lt;pe:documentViewer library="ivy-cms"&amp;gt;&lt;/code&gt; . The CMS store API is quite old and unhandy - but you get an idea how to use it when you look at the HtmlDialogDemos (ch.ivyteam.htmldialog.demo.input.FileUploadAdvancedModeDemo)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/cmsFileUpload.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 23 Jun 2016 12:23:49 -0400</pubDate><guid>https://answers.axonivy.com/questions/1832/show-a-generated-case-document-in-the-userinterface/1834</guid></item></channel></rss>