Expand Method
The Expand method expands an input template with values.
Syntax
[string=] SiteKiosk.Plugins("SiteCash").Macromap.Expand(input)
|
Parameters
input |
String that specifies a template by including variables. |
Return Value
Returns a String that is identical to the input, except for template variables which got replaced with their current values.
Remarks
Examples
You can expand the following auto-updating template variables or update additional ones by yourself with the help of Macromap.Set Method:
$(Date) current date
$(Time) current time
$(ComputerName) terminal name
$(ComputerGuid) computers unique identifier
$(SenderEmail) senders email address
$(Sales) accumulated sales since session start
$(Balance) sessions current balance
$(CurrencySymbol) symbol of current currency
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteCash = SiteKiosk.Plugins("SiteCash");
alerts(SiteCash.Macromap.Expand("We have $(Date), at $(Time)"));
</SCRIPT>
|
Applies to
SiteKiosk v7.2 (and later versions).
Back to top