This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 19, 2012, 12:59 PM
22 Posts

XPages and minimum ALC level on external db

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: ACL,author
  • Replies: 6
We've a phonebook application that query the notes directory. This only works if we give the users of the phonebook "Author" access"with "Create documents" option enabled on the Notes directory. Anything less result in an error on opening the Xpages saying  "not able to create document"
Why is this as mininum ACL required ? 
Apr 19, 2012, 2:46 PM
126 Posts
Re: XPages and minimum ALC level on external db
Are you opening the documents in edit mode? 
Apr 20, 2012, 7:55 AM
3 Posts
Re: XPages and minimum ALC level on external db
The names.nsf is a datasource document defined in Custom Control, and the doc id of the document is passed through a sessionScope variable to the datasource, the datasource is in "Open Document" Mode.
So I imagine the datasource should be opened in read mode, but clearly it always opens it in edit mode.
How to set a datasource component to be always READ-ONLY and with access in Read Mode ? 
(I tried several paramenters like Rights - Read Only ... etc ) but unsucessfully until now. 
Any idea ? 
Regards 
 
 
 
Apr 20, 2012, 9:58 AM
126 Posts
Re: XPages and minimum ALC level on external db
Does the URL contain  "?action=editDocument",  2 options are editDocument and openDocument. 
 
Also are you using a control like the dataView ? this has a property to open documents in read only mode 
Apr 20, 2012, 11:24 AM
3 Posts
Re: XPages and minimum ALC level on external db
Hi Simon
for the data view I use a Repeat control, the link to the document only set the sessionScope.CurrentId to the document Id and do a refresh of the custom control containing the data source.
So I don't use any URL to open the document, the document is opened by a refresh and the datasource switch correctly to the sessionScope.currentId document and show the computed fields from the names.nsf containing the values (lastname, firstname ... etc).
It works fine as the user has Author access with create document checked in names.nsf, and said you're not authorized if create document is not checked in the names.nsf ACL.
Seems for any reason the datasource is in edit mode (even when I changed the rights to ReadOnly in the datasource's properties, and even set a context.setdocumentmode("readOnly") for this datasource.    
I don't know how to force the names.nsf to be readonly in order to avoid login prompt for this Datasource. 
There is no edit commands in the custom control, only computed text.
 
Apr 20, 2012, 1:37 PM
298 Posts
The data source has a property to control read mode vs. edit mode
Apr 20, 2012, 2:02 PM
3 Posts
Re: XPages and minimum ALC level on external db
That's right, there is Rights property set to ReadOnly on the datasource all properties tab ? is that one or is it another ?
I tried that one but did'nt, the datasource go on opening in Edit mode ...  
And the datasource mode is set to "open document" but anyway still opens the document (based on doc id) as edit mode. 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal