Feature Rich
Rapid Application Development
Helping you or your customers
Manage their Business

Object General Reference Syntax

When writing code, you will often need to reference objects and children of objects. 

There is a particular logical syntax for the construction of the reference. 

If the reference begins with the '@' symbol, then the rest of the reference is take as referring to a query held in that object.

All references, should start with '#:' as this will be interpreted correctly should the site code be imported, and the OIDs need updating.

Then should follow the OID or equivalent variable (COID etc),  Then, depending on the requirement, you would follow with another colon ':' to show it's a link to... and then C for children. e.g.  #:1621:C would be the children of object 1621. 

If the # is preceded by a minus '-', then this indicates a reverse lookup from the OID given to the parent OIDs.

In the example code below, the object (1623, a list) has children which the outer loop will iterate through. For each iteration, the link object (1631's) parent objects ('-#:') are iterated though and the name field output. This generates a list of 1623 items, and the linked (via the 1631 link object) objects for each.

{FOR_EACH(#:1623:C)}
    {OBJ_DATA(0, C1)}
    {FOR_EACH(-#:1631)}
        __ {OBJ_DATA(0, C1)}
    {END_FOR_EACH}
{END_FOR_EACH}