LassoScript Utility
Basics Browse Detail


Tag Link [Admin_GetPref] Category Administration
Type Substitution Source Available Yes
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0


[Admin_GetPref] is used to fetch the values of preferences stored internally in Lasso. This tag requires administrator privileges to be run. It requires one parameter which can take two forms.

The parameter can be the name of a single preference to be fetched. In this case the value of the preference is returned by the tag. Null is returned if the preference is not set.

The parameter can be map of preference names and values. Each preference in the map is fetched and the value in the map is set to the new value. If a preference cannot be found then the value in the map is not modified. The modified map is returned as the tag value.


[Admin_GetPref: 'lasso_uptime']

[Admin_GetPref(Map('lasso_uptime'='', 'mypref'=''))]


Required Parameters
-Name Either the name of the preference to be fetched or a map of preference names and default values.


See the Lasso 8 Language Guide for examples of how to use this tag.