setPreferenceValues()

Associates the specified array of String values with the given key in the preference store.

This function produces an error if the preference is read only.

Syntax

portalLib.setPreferenceValue(
  key STRING in,
  value STRING[] in)
key
A string value that contains the preference store key where the preference value should be stored.
value
An array of string values that will be stored as the value of the preference.

Example

myValues String[2] {"value1", "value2"}
portalLib.setPreferenceValue("username", myValues);

Feedback