home
design & development
Lotus application development
print design
web site development
request a design quote
solutions & consulting
Notes and Domino application development
Lotus Domino administration
Securence Mail Filtering
UNITRENDS backup and recovery
Lotus Notes / Domino Apps
free Lotus Notes apps
hosting
web site hosting
Lotus application hosting
check your mail
request a hosting quote
publishing
media and publishing
sound
client services
help & support
Make Payment
Client Access - Workboard
billing & payment policies
copyright & liability policies
pricing & turnaround policies
privacy statement
contact
e-mail MW
get files
send files
Edit Box Be an Authors or Readers Field
Mindwatering Incorporated
Author: Tripp W Black
Created: 12/23/2010 at 03:55 PM
Category:
Notes Developer Tips
XPages
Issue:
How to make a field's value be an Authors or Readers field.
Option 1:
Compute with form on save option in xpage/custom control properties.
Option 2:
Use the following server-side event code for the save/submit data's event of the xpage/custom control:
QuerySaveDocument event
(xpage --> events --> data):
var authors = new Array("[admin]","[staff]");
var doc:NotesDocument = myDataSource.getDocument(true)
var item:NotesItem = doc.replaceItemValue("authorfieldname", authors);
item.setAuthors(true);
myDataSource.replaceItemValue("authorfieldname",item);
myDataSource.save();
Note:
myDataSource is the data source name of the document/data source of the XPage,
previous page
×