Skip to content Skip to sidebar Skip to footer

Alfresco Java Script Api Reference Error 'document' Is Not Found

My apologies for being a newbie. I have configured javascript api amps and I can access java script console via admin tools. My challenge is that for 'document', 'search', logger a

Solution 1:

If you are using javascript console. There will be action available on each of the documents "open in javascript console" If you click on that it will open up javascript console for you with context set with selected document.

Now "document" object points to current document on which you have clicked that action. You should also be able to see all API's associated with it by just adding dot after document.

Point is those root objects like "companyhome","document" etc.. are available on server side javascript.

You can find server side javascript two places.

  1. Under company home>Data dictionary> Script (From here you can associate them with rule) .
  2. Controller of any javascript based webscript.

Post a Comment for "Alfresco Java Script Api Reference Error 'document' Is Not Found"