Skip to main content
5-Regular Member
September 20, 2024
Question

JavaScript提示错误信息(Prompt error message)

  • September 20, 2024
  • 2 replies
  • 742 views

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.0

Embedded Windchill, the error message is as follows:
Uncaught DOMException: Permission denied to access property

 

Translated by the Community Moderation using Google Translate
内嵌Windchill,提示错误信息如下:
Uncaught DOMException: Permission denied to access property

2 replies

joe_morton
18-Opal
18-Opal
September 23, 2024

What was the user doing when the error message came?

1-Visitor
October 9, 2024

你需要提供一些上下文信息,如果可以的话包括 javascrip 浏览器报错的截图。还有就是 js 调用了系统里面具体的那个 java对象和函数需要展示一下。

 

在你具体要执行的代码前后加上


WTPrincipal realUser = SessionHelper.manager.getPrincipal();
SessionHelper.manager.setAdministrator();

SessionHelper.manager.setPrincipal(realUser.getName());