• K
    KKS

    Thanks CraigWeb for your response.

    Here is what I tried.

    FIRST ATTEMPT
    <pre ng-bind="comp1OutputValues | json"></pre>

    <ma-calc output="falseOutput" input=" comp1Output | filter:{comp1Output.value == 0} | maFirst"></ma-calc>
    <ma-calc output="trueOutput" input="comp1Output | filter:{comp1Output.value == 1} | maFirst"></ma-calc>
    <pre ng-bind="falseOutput | json" ></pre>
    <pre ng-bind="trueOutput | json"></pre>

    Error shown in attached image

    SECOND ATTEMPT

    <pre ng-bind="comp1OutputValues | json"></pre>
    <ma-calc output="falseOutput" input=" comp1OutputValues | filter:{comp1OutputValues == 0} | maFirst"></ma-calc>
    <ma-calc output="trueOutput" input="comp1OutputValues | filter:{comp1OutputValues == 1} | maFirst"></ma-calc>
    <pre ng-bind="falseOutput | json" ></pre>
    <pre ng-bind="trueOutput | json"></pre> 0_1573229347456_statechart2.png

    Error shown in attached image

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • K
    KKS

    Hi,

    I am filtering designer.points from watch list to get the displayed points in the state chart

    To get compressor 1 point this is what I have
    <ma-calc output="comp1Output" input="designer.points | filter:{name:deviceName + 'comp_1_on'} | maFirst"></ma-calc>

    <ma-point-values point="comp1Output" values="comp1OutputValues" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}"></ma-point-values>

    I then use comp1OutputValues in state chart to display compressor 1

    1. To display true values only, I tried to filter on comp1Output output object from ma-calc above

    <ma-calc output="comp1truevalues" input="comp1Output | filter:{comp1Output.values == 1"} | maFirst"></ma-calc>

    it errors out.

    1. How to not display true/false labels in the segments.

    Please let me know how to achieve this?0_1573176645143_statechart.png

    Thanks!

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • K
    KKS

    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".

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • K
    KKS

    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

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • K
    KKS

    HI,

    I was extending this example to print point value- but it is not showing up.

    <h3>Points table</h3>
    <md-table-container ng-init="page.tableOrder='name'">
    <table md-table="">
    <thead md-head="" md-order="page.tableOrder">
    <tr>
    <th md-column="" md-order-by="name">Point name</th>
    <th md-column="" md-order-by="value">Point value</th>
    <th md-column="" md-order-by="xid">XID</th>
    </tr>
    </thead>
    <tbody md-body="" ng-init="total = 0">
    <tr ng-repeat="point in page.points | orderBy: page.tableOrder">

                <td md-cell="">
                     <img ng-src="{{point.deviceName.indexOf('Meta') > -1 ? '/rest/v2/file-stores/default/xximages/ye.png' : '/rest/v2/file-stores/default/xximages/yerat.png'}}" width="16px" height="16px">
                    {{point.name}}</td>
                <ma-get-point-value point="point"></ma-get-point-value>
                <td md-cell="">{{point.value}}</td>
                <td md-cell="">{{point.xid}}</td>
            </tr>
            </tbody>
        </table>
    </md-table-container>

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • K
    KKS

    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

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • K
    KKS

    Thanks! No particular reason. I will take a look at the link.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • K
    KKS

    I am trying to create custom dashboard copying admin template to overides folder. Followed "Mango Dashboard Training - Part 3: Development Environment" video. http://xxxxx/user-ui/tutorial/home never loads. After changing url to http://xxxx/user-ui/tutorial/views/dashboard/home.html. It does load. Left panel which should show section 1 and section 2 does not show up. Please let me know what am i missing.

    Thanks

    posted in Dashboard Designer & Custom AngularJS Pages read more