Differences

This shows you the differences between two versions of the page.

Link to this comparison view

aql:moutside [2024/05/13 22:26] (current)
optrix created
Line 1: Line 1:
 +====OUTSIDE====
  
 +===Parameters===
 +
 +^Order^Name^Type^Desc^
 +|1|asset|[[asset list|asset list]]|The asset(s) to search from|
 +
 +===Returns===
 +
 +Places an [[asset list|asset list]] on the stack.
 +
 +===Description===
 +
 +This returns a list of **all assets** that are //upstream// from the given asset(s) on the Location relationship. 
 +
 +The resulting list includes the original asset and all parents, grandparents etc.
 +
 +This isn't actually a true AQL function - it's a macro that is replaced with the following code...
 +
 +   'Location' RELATIONSHIP 'upi' RELATED
 +
 +===Example===
 +
 +<code>
 +'Furnace' ASSET OUTSIDE
 +</code>
 +
 +Internally, this is changed to...
 +
 +<code>
 +'Furnace' ASSET 'Location' RELATIONSHIP 'upi' RELATED
 +</code>
 +
 +This query would return a list of every asset that the furnace is considered 'part of'. This might include the system, building and the site as a whole.
 +
 +===See Also===
 +
 +[[fRELATED|RELATED]]