AnsweredAssumed Answered

accessing documents with node-dbid

Question asked by edgarwu on Aug 20, 2008
Latest reply on Aug 28, 2008 by jbarmash
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

Outcomes