setPreferenceValue()

Associates the specified string value 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
A string value that will be stored as the value for the preference.

Example

portalLib.setPreferenceValue("username", "AnneD");

Feedback