Skip to main content
Version: 1.21.3

SimplePreference

This class provides a method for managing the Preferences menu. This class has no constructor; its only method is accessed with the s_pref global object.

refresh()


Use this method to refresh the Preferences menu automatically.

Return:

TypeDescription
VoidThis method does not return a value.

Example:

refresh()
s_form.save().then(async (sysId) => {
await s_user.setPreference('application', s_form.getValue('pack_application_id'));
await s_user.setPreference('vcs.localPack.current', sysId);
await s_pref.refresh();
}).finally(__resolveServerResponse);