7.5

Table Of Contents
Note: The node names of the path argument can have an optional zero-based index, indicated between square brackets ('[
]'), to access a specific node. If no index is provided, the first node is used.
Important Note: If used from PlanetPress Suite Workflow Tools, every argument is mandatory.
Code Sample Example
These examples show the three different syntaxes for the GetMeta() function.
% Retrieve value for field "mydata". If that field exists in both the current group and
the current datapage collections, for instance,
% this call to the GetMeta() function will return the value of the field from the datap-
age.
GetMeta('mydata')
% Retrieve the second value of the current page, containing two fields called "address",
while the group collection also has four "address" fields.
GetMeta('address[1]')
% Note that using GetMeta('address[2]') would return the third value of the group level.
To prevent the function from cascading up to the group level,
% the NoCascade flag must be provided. And to retrieve the first two "address" fields of
the group collection, the third argument must be used, set to
% the proper path, thusly:
GetMeta('address[1]', 2, 'Job.Group')
Getmetacount (function)
Returns the number of times an attribute or a field is encountered in the current metadata hierarchy. It can also be used to ver-
ify whether a field or attribute exists by comparing the returned value to zero. Note that attributes can only appear once, and
thus can only yield two possible values, either zero or one.
Syntax
getmetacount(name: string[, flags: integer, path: string]) integer
Arguments
name
The name of the metadata value to count.
©2010 Objectif Lune Inc - 288 -