oscarOpenPublicEDoc
Created by Darius Opensource - As Dr Page noted, it would be useful to be able to open documents by name.
There are two options for implementing this, either on the server as
oscarOPEN was implemented, or in the browser.
This is a proof of concept using the latter route, i.e. in the browser using
Javascript.
The attached eForm demonstrates the code.
To use oscarOpenPublicEDoc in an eForm, oscarOpenEDoc.js needs to be
included by adding the following:
<script type="text/javascript"
src="${oscar_image_path}/oscarOpenEDoc.js"/></script>
Then to add a link to , as an example, 'Document A', add the following:
<a href="javascript:oscarOpenPublicEDoc('Document A');">Document A</a>
Feedback always welcome.
Darius.
Document Actions