...
After saving go to programs and add a new program
Name your program, and set the program target filter to
stackractive
Copy and paste the below code for the program into the main part (the filter for the
overviewTableFunc
function can be modified to return the equip data you want. Look at the program section for more info.)Top right of program editor, click the three dots, and select variables
Click the gear that appears as you hover over this
turn Invokes the Function on and change the dropdown to Custom Event
Type in
obtainData
in the line below and save
Save and you're done!
Program
...
Code Block |
---|
var template = this; var target = query('targetPoint'); var columns = []; finstack.eval('overviewTableFunc()').then(function(data) { var realPoints = data.result.toObj(); console.log(realPoints); template.columns = realPoints[0].data.columns; template.rows = realPoints[0].data.rows; }); |
...
Code Block |
---|
finstack.eval('overviewTableFunc("equip and vav and floorRef->dis==\\\"1st Floor\\\"")').then(function(data) { |
...
If you want to dynamically get the target floor to make the graphic relative. You can add an extra variable in the program to get the target
of the current context. Then use the below query that includes that variable to get the ID of the current context. Screenshot below.
Code Block |
---|
finstack.eval(`overviewTableFunc("equip and floorRef==${target.pointId}")`).then(function(data) { |
...