12-22-2016 07:27 AM
Hi ,
I have tried to import customdoclist.lib.js on customdoclist.get.js on repository by using <import resource="classpath:/alfresco/extension/templates/webscripts/com/abc/custom-documentlibrary-repo/customdoclist.lib.js">. but it return following error :
ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-9] Exception from executeScript: 11220099 Wrapped Exception
11220030 Failed to execute script 'classpath*:alfresco/extension/templates/webscripts/com/abc/custom-documentlibrary-repo/vdrd
y formed XML syntax (classpath*:alfresco/extension/templates/webscripts/com/abc/custom-documentlibrary-repo/customdoclist.get.js#8 : illegally formed XML syntax (classpath*:alfre
sco/extension/templates/webscripts/com/abc/custom-documentlibrary-repo/customdoclist.get.js#838)
please give me hint to omit this issue?
Regards
Janaka
12-22-2016 08:23 AM
Please note that import directives must be the first line in the JavaScript file.
12-26-2016 04:31 AM
thanks kayne zhang for reply,
this was happened from comment (// comment) of import library. although i comment unnecessary imported library on controller, it is able to read at load the project.
after removed from commented line from controller, it was worked.
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.