cancel
Showing results for 
Search instead for 
Did you mean: 

userhome and root undefined!!

giluka
Champ in-the-making
Champ in-the-making
Hi all,
i've a question for you …
Using quick start in my webscript implicit objects ike "root" or "userhome" are undefined !!

please help me …
6 REPLIES 6

bremmington
Champ on-the-rise
Champ on-the-rise
If you're trying to use them in the web tier then I'm not surprised. Those are objects that are defined by the Alfresco JavaScript API that is available to webscripts that run in the repository tier. That has no relationship at all to the WQS API.

giluka
Champ in-the-making
Champ in-the-making
ok,
is there a reference on line of javascript objects available on web tier ?
Javascript i have to use in controller script …

thanks

giluka
Champ in-the-making
Champ in-the-making
… ok, but my problems is that in a controller file of an application (i.e. alfresco-share-wysiwyg-file-browser) http://www.cognition-web.co.uk/news/4-blog/21-alfresco-share-wysiwyg-file-browser there's a reference to 'root' object … undefined!!!

bremmington
Champ on-the-rise
Champ on-the-rise
The WQS API is described on the wiki, but there are only a few javascript objects injected into a request so I'll list them here:
  • "webSite": an object of type org.alfresco.wcm.client.WebSite that represents the website that has been requested

  • "section": an object of type org.alfresco.wcm.client.Section that represents the section of the website that has been requested

  • "asset": an object of type org.alfresco.wcm.client.Asset that represents the asset that has been requested

  • "rootSection": another object of type org.alfresco.wcm.client.Section that represents the root section of the requested website (new in 4.0)
There are also a few Freemarker directives available that you can also find referenced on the wiki.

bremmington
Champ on-the-rise
Champ on-the-rise
I think you may be confused about the different applications that are involved. The Share component that you reference runs in the Share application. This is not the same as a WQS website. Perhaps it would be best if you explain what it is you're trying to do, and I'll see if I can help.

giluka
Champ in-the-making
Champ in-the-making
I think you may be confused about the different applications that are involved.
Smiley Very Happy yes, i admit that!!

The Share component that you reference runs in the Share application. This is not the same as a WQS website. Perhaps it would be best if you explain what it is you're trying to do, and I'll see if I can help.
Thanks for your help!!
Maybe in future i'll post more info on my problem… now i've throw it