Dynamic Authorfield possible?

I have the following problem:

I need to change the author field of a document by a value of an other document. All users are authors, except the admin and server they are managers.

this are the wokflow steps:

  1. “alpha test” creates a document of the type Workdoc (Reader “*”, Author “alpha test/org”), and select in a Field KEY a unique value

  2. “beta user” creates a document of the type Valuedoc

(Reader “*”, Author “beta user/org”), and select in the Field KEY the same value

  1. beta user should now be able to edit the Workdoc.

If tried the following ideas:

an author field with computed for display with lookup → does not work, because it is calculated to late

an author field with a computed field with lookup → does not work, because it is calculated to late

a action button on view with a agent that runs on behalf of “admin” to set the author field → You are not authorized to …

Any suggestions would be great? thanks!

Subject: Lets go back to the basic BUSINESS functionality

Leaving aside super users and servers who can do anything of cours :slight_smile:

what you are proposing.

As I understand it,

one user can create a document and for the time being retains the right to change it

but at any time,

any other user can get control of the document merely by creating a ‘request’

What does that achieve in business terms?

apart from recording who currently has control of the document?

since thats the case why not work it that way,

on the document record the current owner (just a text field)

give all users uthor access to teh document (e.g.via a role)

However in code dont allow anywone except the “owner” to open in edit mode

(code in query open, Query mode change etc)

write an action to change the owner field (saving a record )

Subject: RE: Dynamic Authorfield possible?

The action button solution sounds practical, but you would have to use RunOnServer; agents executed by the client run with the client’s authorities.

Subject: RE: Dynamic Authorfield possible?

Work fine, thanks!