Appxweb Meta
Home > Developer > Objects > scalar


meta - AML object declaration extension - AML object declaration package - AML object declaration data - AML object declaration function - AML object declaration view - AML object declaration scalar - AML object declaration array - AML object declaration pointer - AML object declaration script - AML object declaration call_script - AML object declaration render - AML object declaration navigate - AML object declaration menu - AML object declaration menu - AML object declaration dialog - AML object declaration report - AML object declaration window - AML object declaration

<report>

Figure: Object Chart (scalar Object Highlighted)
Syntax <report>
Example
 
Element: scalar
Parent: data
Description: Declaration of a data object having a scalar data structure. (ie holds only one value at a time)
Occurs: 0 or unbound. (i. e Within the <data> element the <scalar> element can occur zero or many times.)
 Attribute: AM_data_id
 Description: Unique alphanumeric indentifier of this scalar data object.
Value Type: string
Value: user defined
Occurs: 1 (i.e required)
 Attribute: scope
 Description: Specifies whether the variable is added to the namespace of the web browsers script host.
Value Type: enumeration
Value:
public - (default) added to namespace of web browsers script host and therefore able to be scripted within the browser.
private - not addded to namespace of web browsers script host
Occurs: 0 or 1 (i.e optional)
 Attribute: state
 Description: Specifies whether variable is able to be changed.
Value Type: enumeration
Value:
variable - (default) value of the variable is able to be changed
constant - value of the variable is constant
volitile - value of the variable is able to be changed but is not saved when data is saved locally to a file
Occurs: 0 or 1 (i.e optional)
 Attribute: format
 Description: Specifies whether the variable’s value is wrapped in a CDATA section.
Value Type: enumeration
Value:
markup - (default) value is considered markup
cdata - causes the value_xxx element value to be wrapped in a CDATA section. Doing so forces the parser to interpret the contents as character data and not markup. For example

<aml:value_html>
   <![CDATA[ <b>The example</b> ]]>
<aml:value_html>

Occurs: 0 or 1 (i.e optional)
 
Element: value_xxx
Parent: scalar
Description: Value of the scalar variable. xxx representing the variable data type. Available types include:

     value_str       value_num       value_int       value_unsignedint       value_byte       value_bool
      value_b64binary       value_hexbinary       value_date       value_time       value_datetime
      value_uri       value_language       value_xml       value_html       value_svg       value_rdf

Note the current version of Meta does not perform validation against the data type of the variable with this functionality planned for future versions.
Value Type: Dependent on the variable data type.
Value : User defined string/character data consistent with the variable data type.
Occurs: 1 (i.e required)
 

top