General Functions
This document provides a reference for all built-in general functions available in OpenDataDSL.
clone(var)
Category: General
Description: Creates a new copy of a variable
Parameters:
var(Any Var) - The value to create a copy of
Returns: Same type as input
content()
Category: General
Description:
Parameters:
Returns:
element()
Category: General
Description:
Parameters:
Returns:
elementValues()
Category: General
Description:
Parameters:
Returns:
elementValuesIndexOf()
Category: General
Description:
Parameters:
Returns:
evaluate(var)
Category: General
Description: Evaluates a string expression and returns the result
Parameters:
var(String) - The string expression to evaluate
Returns: Any
firstElement()
Category: General
Description:
Parameters:
Returns:
keys(obj)
Category: Introspection
Description: Returns the property names of an object
Parameters:
obj(Var) - The object variable to iterate through
Returns: List
lastElement()
Category: General
Description:
Parameters:
Returns:
loadCalendars()
Category: General
Description: Loads all known public and private calendars into memory
Parameters:
Returns: Void
loadTypes()
Category: General
Description: Loads all known public and private types into memory
Parameters:
Returns: Void
methods(object)
Category: Introspection
Description: Returns the methods available for a given variable
Parameters:
object(Variable) - The object to inspect
Returns: List
properties(object)
Category: Introspection
Description: Returns an array of Strings that gives information about the properties on a variable
Parameters:
object(Any) - The variable to test what the type is
Returns: List(String)
ref(Service, Id)
Category: General
Description: Creates a reference to a variable
Parameters:
Service(String) - The name of the service where the variable existsId(String) - The id of the variable to create a reference to
Returns: Reference
ref(var)
Category: General
Description: Creates a reference to a variable
Parameters:
var(Any Var) - The value to create a reference to
Returns: Reference
replaceElements()
Category: General
Description:
Parameters:
Returns:
typeOf(object)
Category: Introspection
Description: Returns a String with the type name of a variable
Parameters:
object(Any) - The variable to test what the type is
Returns: String
uid()
Category: General
Description: Generates a unique ID
Parameters:
Returns: String
variable(name)
Category: Introspection
Description: Returns the variable with the given name
Parameters:
name(String) - The name of the variable to return
Returns: Any
variable(var, name)
Category: Introspection
Description: Returns the variable with the given name
Parameters:
var(Anything) - The variable that contains the dynamic propertyname(String) - The name of the variable to return
Returns: Any
variables()
Category: Introspection
Description: Returns a list of the current variables
Parameters:
Returns: List