7.5

Table Of Contents
GetAttribute 1
Search for the name argument in the attribute collection
instead of the default field collection.
NoCascade 2
Search only the level specified by the path argument
(defaults toPage level when path argument is empty),
instead of default behavior, going from the Page levelto
the Job level.
FailIfNotFound 4
Raise an error and crash the job is the specified nameis
not found instead of returning an empty string.
SelectedNodesOnly 8 Returns values from the selected nodes only.
path
Optional string value to specify the level where to start looking for the field or attribute. Path components cannot be indexed,
and if no path
is provided, the search is done from the the Page level.
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')
©2010 Objectif Lune Inc - 492 -