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.