openDocAsReadonly Computed?

巧了我就是萌 提交于 2019-12-10 23:31:41

问题


I know there is the True/False option for this, but I'm wanting to have it differentiate depending on the status of a document. It only lets you select Edit or Read Only on the "Display" tab, but I'm thinking there has to be a way to compute this.

If the status of the document is "Sent" then I want it to open in Edit mode.

If the status of the document is "Reviewed" then I want it to open in Read Only mode.


回答1:


You can edit this property in "All Properties" tab

and write SSJS or EL code there.




回答2:


Almost every control in XPages is really a bean meaning that you can compute almost all of its properties.

"Why is it crucial to understand the nature of beans when developing XPages, even if you're not specifically writing Java code? Because darn near everything in an XPage is a bean."

Source: What the heck is a bean? by Tim Tripcony



来源:https://stackoverflow.com/questions/21633159/opendocasreadonly-computed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!