Xpages and $Readers

I need to know how to create the $readers field via an xpage.

I want the xpage to create a document that creates a $readers field similar to a regular notes form, where only certain users checked on the default readers/writers tab.

I cannot do this via the xpage ACL because the end result is the document being displayed via a web only document using a form.

I treid creating a field on the form called $readers and then binding a field on the xpage to that field, it populates fine however the readers field does not take effect.

Any help is greatly appreciated!!!

Subject: Run an agent or script on save

The only reliable way I have found to do this is by running an agent once the data is saved. I suppose you could also run a script that might do the same thing and just put that script into something like the PostSave event.

Subject: When you created the $Readers field did you set the readers flag?

You have to set the isReaders property of NotesItem for the $Readers field to true or else it will be just a regular old field.

Howard