Hello. I have a question about using local variables/macro with SWQL queries.
It can be named differently, so let me explain what I mean.
For example, I want to add Custom Query widget on the NodeDetails page with Last Boot history info (last 10 events).
What's why I use this template:
SELECT TOP 10 EventTime, NodeID, Message, Acknowledged
FROM Orion.Events
INNER JOIN Orion.Nodes ON events.NetObjectID = nodes.nodeid;
WHERE NodeID='xxx';
ORDER BY EventTime DESC
But instead of 'xxx' I want to put in NodeID of current host (if user opens NodeDetails page of Node with "NodeDetails=100", xxx must be replaced with "100" and show info about current openned node).