找不到Alfresco Java脚本API参考错误“文档”

编程入门 行业动态 更新时间:2024-10-25 16:30:37
本文介绍了找不到Alfresco Java脚本API参考错误“文档”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我很抱歉成为新手。我已经配置了javascript api amp,并且可以通过管理工具访问java脚本控制台。我面临的挑战是,对于文档,搜索,记录器和 companyhome,我正在接收参考错误,例如未定义参考错误文档。我一直在阅读露天文档,并且它们表明您必须使用javascript服务器端进行访问。如果您使用的是JavaScript控制台,我该如何在户外做到这一点或如何克服这些错误

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 and 'companyhome' I am an receiving reference error e.g reference error 'document' is not defined. I have been reading alfresco documentation and they show that you have to access it using javascript server side. how can i do that in alfresco or how can overcome these errors

推荐答案

。在在javascript控制台中打开的每个文档上都将有可用的操作。如果单击该操作,它将为您打开javascript控制台,并为所选文档设置了上下文。

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.

文档对象现在指向您在其上单击了该操作的当前文档。您还应该可以通过在文档后添加点来查看与其相关的所有API。

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.

点是那些根对象,例如 companyhome, document等。在服务器端javascript上可用。

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

您可以在服务器端的javascript的两个位置找到

You can find server side javascript two places.

  • 在公司主页下>数据字典>脚本(在这里您可以将它们与规则关联)。
  • 任何基于JavaScript的网页脚本的控制器。
  • 更多推荐

    找不到Alfresco Java脚本API参考错误“文档”

    本文发布于:2023-11-28 10:22:05,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1642012.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:找不到   脚本   错误   文档   Java

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!