0
votes

I have done many web searches and on specific search for "xpages UNID set to readonly ssjs" on stack overflow and think the answer is no - but I want to be sure. Is there a ssjs command that can be used to set the mode of a document by using the UNID of document? This would be like `context.setDocumentMode("document1","edit"); but would use the UNID instead of the currentDocument.

1
What are you trying to do? Read/Edit applies to data sources, not documentsstwissel
It is difficult to describe and relates to another question I posted. I thought I needed to get a handle on the currentDocument to make sure the document opens in read mode. I solved the problem another way.user4920643

1 Answers

2
votes

Read and Edit mode are UI constructs that have nothing to do with the underlying document. For a document you might have read, write or no access. So you can't set a document to read or edit mode. What you do set to read or edit mode is the datasource (which might point to a document or something else) and a datasource doesn't have a UNID, it has a name (like document1).