cancel
Showing results for 
Search instead for 
Did you mean: 

using import in 5.1

redraccoon
Star Contributor
Star Contributor
Hello

I have a webscript, in this webscript I add ressource from a script

<import resource="classpath:/alfresco/extension/scripts/companyName/services/CorrespTemplateService.js">


In 4.2 for using methode of the script in my webscript I just had to call him

var CorrespTemplateService = new companyName.CorrespTemplateService();

then I just

CorrespTemplateService.MyMethodeName();

But it's not working in 5.1 do anobody have a simple example to show ?

thank you !

Alfresco Version
5.1.x
1 REPLY 1

redraccoon
Star Contributor
Star Contributor
instead of

<javascript>CorrespTemplateService.MyMethodeName();</javascript>

just use
<javascript>MyMethodeName();</javascript> …