cancel
Showing results for 
Search instead for 
Did you mean: 

accessing documents with node-dbid

edgarwu
Champ in-the-making
Champ in-the-making
I have been trying to use the code posted at http://drquyong.com/myblog/?p=21 to access documents with shorter URL's but in vain.
I keep getting error msg:

Failed to execute script 'workspace://SpacesStore//Company Home/Data Dictionary/Web Scripts/org/alfresco/org/alfresco/fastpublish/ShortUrl.get.js': Failed to execute script 'workspace://SpacesStore//Company Home/Data Dictionary/Web Scripts/org/alfresco/org/alfresco/fastpublish/ShortUrl.get.js': Java class "org.alfresco.web.scripts.Status" has no public instance field or method named "location". (AlfrescoScript#28)

I did take a look at the source code and the location field is defined though not public.  Code, message, location are all private data members.
Code/message can be accessed directly without using member functions but not location ???  I also tried setLocation() member function and got the same error msg complaining about setLocation: Cannot find function setLocation.

Can anyone help?  I am using 2.9B

Thanks, Edgar
1 REPLY 1

jbarmash
Champ in-the-making
Champ in-the-making
just retested Yong's script on 2.2 Enterprise. 

Try it with 3.0 Labs - the web scripting framework has gotten lots of enhancement, so you may have that available in 3.0. 2.9 Community came out before 2.2 Enterprise.