问题
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