You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »


Contents


Intro

It is possible to view related documents or pictures through the document viewer. This viewer shows by default documents that are related to the actual workflow in the IFD. Since FEWS 2013.01 it is also possible to view documents which have a reference in a comment on a time series value. This reference should be a valid URL.

Requirements

The feature only works in docking mode, so enable this mode in the global.properties through the key dockin=true
The feature is available since FEWS 2013.01.
The feature only works in case the comment is one complete URL. It is not possible to have a URL somewhere in the midst of a comment text.

In case of a link to a local file, the comment should be in the format: "file:///D:/..."
Supported document types are JPG, PNG, PDF and TXT.

XNL configuration in Explorer.xml

To enable this feature the document viewer should be configured as an explorer task only.

<explorerTask name="Document viewer">
  <mnemonic>X</mnemonic>
  <taskClass>nl.wldelft.fews.gui.plugin.information.ForecasterAidDocumentPanel</taskClass>
  <toolbarTask>false</toolbarTask>
  <menubarTask>false</menubarTask>
  <toolWindow>true</toolWindow>
  <loadAtStartup>true</loadAtStartup>
</explorerTask>

Optionally you also may need to configure some credentials for links to websites or hosts that need a user/password.
You can have one general credential for all URLs:

<documentViewer>
  <hostCredentials>
    <user>user</user>
    <password>pw</password>
  </hostCredentials>
</documentViewer>

You can also have multiple credentials for different websites:

<documentViewer>
  <hostCredentials>
    <hostName>http://xxxx.com</hostName>
    <user>user</user>
    <password>pw</password>
  </hostCredentials>
  <hostCredentials>
    <hostName>http://yyyyy.com</hostName>
    <user>user</user>
    <password>pw</password>
  </hostCredentials>
</documentViewer>
  • No labels