Hi everyone,

is it possible to show a case document (.pdf) by using the documentviewer(!)?

So far the document was always saved in the webcontet folder and it worked fine by using the documentviewer with the following code:

"< pe:documentViewer height="800" width="500" library="ivy-webcontent" name="folder/file1.pdf"/>"

Source: http://answers.axonivy.com/questions/38/how-to-show-a-project-image-with-p-graphicimage

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?

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.

Thanks for your time!

asked 22.06.2016 at 14:43

Spfl_'s gravatar image

Spfl_
(suspended)
accept rate: 0%


two possible workarounds which should work:

  • 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.
  • persist the PDF in the CMS and load it from there via <pe:documentViewer library="ivy-cms"> . 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)

alt text

link

answered 23.06.2016 at 12:23

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 23.06.2016 at 12:25

Hello,

thank you very much for your answer.

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.

The workarounds you offered seem to be for static documents and therefore not an option for my case.

Thanks so far.

(23.06.2016 at 15:56) Spfl_ Spfl_'s gravatar image

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.

(27.06.2016 at 08:52) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×78

Asked: 22.06.2016 at 14:43

Seen: 1,926 times

Last updated: 27.06.2016 at 08:52