13.10.2021, 06:50
Create an Object element mapped to the required group address. Set the Additional classes property to showplan showplan-123 (change 123 to the plan ID that you want to show). Plan ID can be found in the plan properties (Vis. structure). Add to custom JavaScript (Scripting > Tools > Edit custom JavaScript):
This will only work in the visualization viewer but not in the editor.
Code:
$(function(){
$('.showplan').on('vclick', function() {
var matches = this.className.match(/showplan\-(\d+)/);
if (matches) {
showPlan(Number(matches[1]));
}
});
});