Query Association

From HEWIKI
Jump to: navigation, search

QueryAssociation( source as noderef, associationType as string, target as noderef ) as list of association

Arguments

<source> 
The noderef of the parent node being checked
<associationType> 
A string representing the type of association between the nodes
<target> 
The noderef of the child node being checked

Description

This is an exposed function which creates a list of all of the associations between two different nodes. If any of the fields are null, then it is a wildcard which checks for all nodes or association types, as appropriate.

There are other specialized functions for common queries. For more information, please see the section on Associations.

Example

q as list of association = QueryAssociation(none, "", none)
 
foreach a in q
  nodeID as ID = a.source
  println("Found an association.  Source node is: " + nodeID)   
.

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox