javascript - Alfresco Java script API Reference error 'document' is not found -
my apologies being newbie. have configured javascript api amps , can access java script console via admin tools. challenge 'document', 'search', logger , 'companyhome' receiving reference error e.g reference error 'document' not defined. have been reading alfresco documentation , show have access using javascript server side. how can in alfresco or how can overcome these errors
if using javascript console. there action available on each of documents "open in javascript console" if click on open javascript console context set selected document.
now "document" object points current document on have clicked action. should able see api's associated adding dot after document.
point root objects "companyhome","document" etc.. available on server side javascript.
you can find server side javascript 2 places.
- under company home>data dictionary> script (from here can associate them rule) .
- controller of javascript based webscript.