AnsweredAssumed Answered

companyhome not defined

Question asked by djesdforum on Jun 10, 2009
Latest reply on Jun 10, 2009 by djesdforum
WE are trying to use the JAvascript API to access webscripts. However we are receving the "companyhome not defined" error and as a result not able to proceed. Are we missing anything as far the installation goes, trying to figure why we would get this error for a seemingly simple script.
This is sample code from the cookbook for JS API
var template = companyhome.childByNamePath("/Data Dictionary/Presentation Templates/doc_info.ftl");
if (template != null)
   var result = document.processTemplate(template);
   // output result to the console - could just as easily save the content into a new node…