This global class allows operations with the Preferences menu. This class has no constructor; its only method can be accessed using the s_pref global object.

refresh()


This method allows refreshing the Preferences menu automatically.


Return:

TypeDescription
VoidThis method does not return a value.


Example:

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);