Associates the specified string value with the given key in the preference store.
This function produces an error if the preference is read only.
portalLib.setPreferenceValue(
key STRING in,
value STRING? in)
portalLib.setPreferenceValue("username", "AnneD");