setValueCustomData (NotesItem - JavaScript)

Sets the value of an item to custom data from an object.

Defined in

NotesItem

Syntax

setValueCustomData(Object:any) : void

setValueCustomData(datatypename:string, Object:any) : void

Parameter Description
Object An object that contains the custom data. The class that defines this object must implement Serializable. If desired, you can override readObject and writeObject.
datatypename A name for the data type. When getting custom data, use this name for verification.

Usage

The new value replaces the existing value.

To keep the changes, you must call NotesDocument.save after calling this method.

The custom data cannot exceed 64K.

If you intend to get the custom data through a language binding other than Java, use a "Bytes" method.