• P
    Phillip Weeks

    @phillip-weeks Latest UI 3.2.10 Confusing watchlist behaviour ...

    take the RQL straight from a working watchlist query

    or(eq(deviceName,{{UnitNumber}})) THIS WORKS and returns 47 records.

    Make a new Watchlist and drop this RQL query with the exact same working parameter list and default parameter.

    It returns no values

    The same RQL works perfectly in the orignal watchlist??
    even modifying it in the original watchlist still returns records.

    new watchlists being created with a parameter don't work
    yet replace var with a LITERAL in the query and it works returning correct records.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • P
    Phillip Weeks

    Setup a device parameter dn to hold the value.
    devicename parameter list shows up correctly and the preview allows me to select a device as a parameter,

    however it appears the query cannot see the variable {{dn.name}} because it returns no records when trying to match the parameter

    (deviceName,{{dn.name}})&sort(deviceName,name)&limit(200)

    YET when selecting records devicename > {{dn.name}} as so

    gt(deviceName,{{dn.name}})&sort(deviceName,name)&limit(200)

    returns all records because {{dn.name}} is nothing I'm guessing?

    When I type in a LITERAL like:

    eq(deviceName,1-71-101)&sort(deviceName,name)&limit(200)
    I get the 1 correct result so it appears to be a variable scope issue...

    QUERY PREVIEW (1)

    Any clues on what is happening?

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • P
    Phillip Weeks

    Thanks, Jared I am beginning to figure it out. Thank goodness. :)

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • P
    Phillip Weeks

    Jared, my understanding of the variable environment is my biggest hurdle. and learning how to manipulate points from filtered watchlists as variables.. for example <ma-calc takes as input="designer.points | filter:... and produces a new output="mypointvar". This variable is created and set to the result of the input expression correct? I can then use this variable in other directives so how do we assign "designer.points | filter:{name:'COIL PUMP SPEED (P-10)'}:true | maFirst" to a variable like <ma-point-value takes the xid="DP_231293" and creates a point="myvariable" that can be used in other directives. Is there a directive that takes the filtered point and exposes this point as a variable like <ma-calc uses output="myvariable" except is the same reference as the input being the "designer.points" filtered point?
    As well and I'm sure related to my misunderstanding please see if the below makes sense.

    I want a number input to initialize its input value as ng-init="setpoint=50" which works but instead setting the intitial value using a point's value.
    ng-init="setpoint=Point1Value.value" can't get this to work.

    Please demonstrate how to initialize an input to the point value.

     <ma-calc input="designer.points | filter:{name:'COIL PUMP SPEED (P-10)'}:true | maFirst" output="mycoilspeed" on-change="Point1Value = $value;" ng-init="counter=0;" >   </ma-calc>  
    <md-input-container id="input1" flex="10" style="width: 140px; height: 100px; top: 0px; left: 0px; position: absolute;">
        <input id="input2" style="width: 125px; height: 60px; top: 28px; left: 11.091px; position: absolute;" type="number" step="1" min="45" max="55" ng-model="setpoint" ng-init="setpoint=Point1Value.value;">
    </md-input-container>

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • P
    Phillip Weeks

    Thanks Phil, this would be very useful for enforcing limits on controls and with hundreds of points to setup it would be helpful to import this for sure.

    posted in Development general discussion read more
  • P
    Phillip Weeks

    On the point details page under the point properties section .. the new features rollup and prevent extreme sets.... How do we get this exported out with the point to a file. I exported the DS points to csv however I do not see any column associated with these attributes??

    posted in Development general discussion read more
  • P
    Phillip Weeks

    Might please and thank-you someone furnish an example or direct to an example that uses a button to increment an integer point value while incorporating a validation function before setting the point?? The integer point should be the returned point from a watchlist filter.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • P
    Phillip Weeks

    Thanks for the advice on clearing the cache and sorry for the freezing up alarm.

    posted in Dashboard Designer & Custom AngularJS Pages read more
  • P
    Phillip Weeks

    On the second clearing attempt it has worked and I have gotten back in and removed the malformed ma-calc directive which caused the issue. Thanks for the direction.

    posted in User help read more

Looks like your connection to Mango Automation Forum was lost, please wait while we try to reconnect.