05-09-2008 08:31 AM
05-10-2008 01:03 AM
05-19-2008 03:55 AM
05-19-2008 10:14 AM
05-19-2008 10:44 AM
found this article:
http://peter.michaux.ca/article/3019
Appendix 2: talking with the database from the Rhino shell
I make java file, put it in source, org.alfresco.mysqlconnect; I compile the code..
This should work, but I don't know how to call java function with javascript in alfresco..
Anybody?
thanks
05-21-2008 07:42 AM
08-20-2008 06:04 AM
As of Alfresco 2.1.3, Javascript scripts stored in the classpath can also leverage the Rhino Javascript interpreter's native Java integration facilities (see the Rhino documentation for more details). For security reasons these mechanisms are completely disabled for Javascript scripts that are stored in the repository.So this fonctionality should be available in Alf-Labs3.0, right? What's wrong with this script 'test.js' calling java, with, say, new java.io.File("…") imported in a script?
<import resource="classpath:alfresco/extension/test.js"> which complains that "ReferenceError: "java" is not defined"?Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.