Help on few mango components missing
-
Hi
I was working in dashboard designer, some of the mango components help is not available.
These are the ones, that I noticed.- ma-point-hierarchy-browser
- ma-point-hierarchy-point-selector
- ma-point-hierarchy-select
thx
-
@kks Yes some components are missing documentation. If you need any help let me know what you are trying to do and I'll point you in the right direction.
-
Hi Jared,
I want to create a 'ma-point-hierarchy-point-selector' on the left panel. The right panel should have table with selected point name/values displayed and single chart with all selected point(s) lines. Searched the forum, for this mango .component but coud not find any.
thx in advance
-
@KKS here's an example you can use.
<div class="ma-designer-root" id="49a37997-7c9c-4973-8aa7-56beb6259455" style="width: 1366px; height: 768px; position: relative;"> <ma-point-hierarchy-point-selector id="6bfd2456-5a46-45e0-915f-89348a95b419" ng-model="points" path="['Demo']" style="position: absolute; left: 0px; top: 0px; width: 50%; height: 50%;" expanded="1" hide-folders-with-no-points="true" select-subfolders="true" show-device-names="true"></ma-point-hierarchy-point-selector> <md-table-container ng-init="sortOrder='xid'" id="37d733aa-6608-4313-83e9-7e703877a0c4" style="position: absolute; left: 0px; top: 50%; width: 100%; height: 50%;"> <table md-table=""> <thead md-head="" md-order="sortOrder"> <tr> <th md-column="" md-order-by="xid">XID</th> <th md-column="" md-order-by="deviceName">Device name</th> <th md-column="" md-order-by="name">Name</th> <th md-column="" md-order-by="value">Value</th> </tr> </thead> <tbody md-body=""> <tr ng-repeat="point in points | orderBy:sortOrder track by point.xid"> <td ng-bind="point.xid"></td> <td ng-bind="point.deviceName"></td> <td ng-bind="point.name"></td> <td><ma-point-value point-xid="{{point.xid}}"></ma-point-value></td> </tr> </tbody> </table> </md-table-container> <pre id="9e4a5a3b-5882-49a3-b08c-084feb2ce84d" style="position: absolute; left: 50%; top: 0px; width: 50%; height: 50%; overflow: scroll;" ng-bind="points | json"></pre> </div>
have you looked at the attributes available for
<ma-point-hierarchy-point-selector>
in the dashboard designer? I realize its not full documentation. We are phasing out point hierarchies in favor of data point tags.
-
Thank you so much Jared. I will give it a try.
I wasn't sure how to get selected points from ma-point-hierarchy-point-selector. This is what I had tried.
<ma-point-hierarchy-point-selector id="895788e3-8b45-4b67-8726-7081b37b7348" ng-model="maPointHierarchyPointSelectorModel" path="[]" ></ma-point-hierarchy-point-selector>
I was trying to print by looping "point in maPointHierarchyPointSelectorModel.points".