Changes

Jump to: navigation, search

System Variables

1,239 bytes added, 19:25, 29 June 2019
no edit summary
The '''System Variables''' setting on the [[Global Settings]] page allows you to create and edit system-wide variables within your instance.These variables can be referred to from anywhere within [[SmartSimple]] using the following syntax:=Overview= 
The '''System Variables '''setting on the [[Global Settings]] page will allow you to create and edit system-wide variables within your [[instance]]. These variables can then be referred to from anywhere within your [[SmartSimple]] copy by using the following syntax:  : <span style="font -size="3: medium;">@system.''variable name''@</fontspan'''Example:'''  If you have created a System Variable named '''Tax Rate''' you would use:
'''Example:'''
If you have created a System Variable named '''Tax Rate''' you would use:
@system.tax rate@
A global System Library can be accessed as system variables. The available values and functions can be found under System Variables on the [[Global Settings]] page. The syntax is:
 
: <span style="font-size: medium;">@system.library.''variable name''@</span>
'''<br class="Apple-interchange-newline">Example:''' 
 To return a list of languages from the global library, you would use:
A global System Library @system.library.language@* '''Note:''' Library variables are available in all instances but can only be accessed as created and edited by SmartSimple.* '''Note: '''It is best to use and create system variablesif you need to repeat something more than twice. The available values and functions can be found under * '''Tip: '''System Variables on the [[Global Settings]] pageis a helpful resource should you ever need to restore ID numbers, areas you search, signature, email address, etc. The syntax is:
<font size="3">@systemYou can also include links - for example, you can make a document of guidelines in [[SmartFolders Overview|SmartFolders]] into an Internet-enabled URL, then upload this link to '''System Variables '''in order to place the documents everywhere.libraryIf that document then changes, you would only have to modify the content in one place.Other use-cases for ''variable name'System Variables '@</font>''might include a set scoring protocol if your system uses a reviewer-scoring process. 
=Accessing System Variables= 
1. Click on the 9-square menu icon on the top right of your page. :: {{Icon-Menu}}  2. Under the heading '''Configuration, '''Example:select '''Global Settings. '''To return a list of languages from 3. Under the global librarysubheading '''System Configuration, you would use: @system '''click on the hyperlink labelled '''System Variables.library.language@ '''
'''Note:''' Library A [[List View Overview|list]] of available system variables are available in all instances but can only will be created and edited by SmartSimpledisplayed.
==System 2==
For example, if on a [[Web Page View]] you have a button that you want to have a different value based on the [[Language|langid]] of the user.
 * Create 2 [[System Variable]]s with :*:* Name: '''Open1''' Value: '''Open''':*:* Name: '''Open2''' Value: '''Ouvert'''
And refer to them on the [[Web Page View]] as follows
 * <pre> <input type="button " value="@system2.Open@me.langid@@" onclick="doThis()"/>
</pre>
==Setting a System Variable==
 *# Go to [[Global Settings]]*# Under the System Configuration heading, click on the hyperlink for System Variables.*# Click on the "New Variable" button and enter details::*#* '''Name''' will be the variable name referenced in the '''@system.''variable name''@''' syntax.:*#* '''Description''' is an optional narrative description.:*#* '''Value''' will be the value returned by the variable. 
If the Value is a date, use the ''yyyy-mm-dd'' date format.
==See Also==
*#* [[Pandora - Update a System Variable]]*#* [[Root Company Variable]]s 
[[Category:Global Settings]][[Category:Variables]]
2,299
edits

Navigation menu