Problem solve Get help with specific problems with your technologies, process and projects.

Buttons in document don't work in read-only mode

I have a controlled access section that uses a field in the form to determine who can edit it. The formula for the section (computed for display) is:

But the section contains buttons that I want all users to be able to use when the document is only opened for read. The buttons don't work if I use this formula.

I tried:

@If(@IsDocBeingEdited; editorlist:"[
;Admin]"; "[AllUsers]")
(I know it could have been "", but we have an AllUsers role, so I use it.)

Unfortunately, it gives access to everyone if the document is opened read-only and then switched into edit mode. Any suggestions?
Your formula should work fine, but it will only apply in edit mode. Check to make certain that the documents in question don't have a stored value for the access section from before. If it exists, it will override the computed for display value.

If you want the buttons available to all users in read mode, place them outside the section so they are always available.

Do you have comments on this Ask the Expert Q&A? Let us know.

Dig Deeper on Lotus Notes Domino Application Development

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...