Skip to main content
5-Regular Member
Question

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

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
19-Tanzanite

What was the user doing when the error message came?

Translate
1-Visitor

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

 

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


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

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

Translate