... setprefs, to enable setting of user preferences from JavaScript: <Require feature="setprefs" /> Second, you'll need the UserPref fields for the coordinates: <UserPref datatype="hidden" name="latitude" /> <UserPref datatype="hidden" name ...
... setPrefs ( ) needs to know what to look for . Look at the preferences form again . Notice that each element ( besides the buttons at the bottom ) is a text field , a select list , or a checkbox . Therefore , setPrefs ( ) only needs to ...
... SetPrefs ( ) method of MyToolbars . To save a user's selections , SetPrefs ( ) loops through each record . A call is made to save the preference and , if the user has chosen to view the toolbar , the MakeToolbar ( ) method is called to ...
... setPref can be used from Director or Projectors , but setPref won't work from a read - only drive , such as a CD - ROM . ) setPref ( prefFile , prefText ) set prefText = getPref ( prefFile ) SetPref writes prefText to a prefFile , and ...
... setprefs" /> <Require feature="views" /> setprefs is required to persist user preferences, whereas views determines whether the current user can edit the preferences or not. Include the gadget, the common locale, under ModulePrefs ...
... settings using the setpref function. For example: setpref('Internet','SMTP_Server','my_server.example.com'); setpref('Internet','E_mail','my_email@example.com'); To identify the SMTP server for the call to setpref, check the preferences ...
... setpref('myApp','dataMode', 'binary'); setpref('myApp','dataSize', [10,5]); setpref('myApp','isDebugMode', false); However, under the hood both getpref and setpref use the single preferences file [prefdir, '\matlabprefs.mat ...