Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

XDXCreateContextComponent Function

Overview

The XDXCreateContextComponent function assembles parameters to create a context component.

Syntax/Parameters

Syntax

string = XDXCreateContextComponent ( string data[] );

Parameters

data

A string array containing named parameters. See Remarks below.

Return Value

A string containing coded component for an engram or an empty string on failure. Use the GetLastError function to retrieve a formatted error code and GetLastErrorMessage for additional detail.

Remarks

Component parameters are provided as an array with named keys. The key names are as follows:

  Definition   Description  
  date_a   Starting date of duration or date of instant context.  
  date_b   Ending date for a type duration context.  
  dimension_xx   Pairs of dimension and value from 01 to 10.  
  value_xx   Pairs of dimension and value from 01 to 10.  

 

Note that the returned component does not contain an engram code. This is added when the component is added using the XDXPropertiesToEngram function.

The reciprocal function is XDXGetContextProperties.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic