• P
    Phillip Weeks

    Thanks no that was not in the script I added that after. This produces the same result. It is 3.6 and I will upgrade to 3.7 shortly if it fixes this. Thanks for your reply,

    var dataPoints = JSON.parse(JsonEmport.dataPointQuery("eq(name,FAN COIL VALVE)&limit(1000)")).dataPoints;
    print(JsonEmport.dataPointQuery("eq(name,FAN COIL VALVE)&limit(1000)"));
    

    posted in How-To read more
  • P
    Phillip Weeks

    I used this code before our last update to 3.6... now this returns an eof error.

    print(JsonEmport.dataPointQuery("eq(name,FAN COIL VALVE)&limit(1000)"));```
    
    Expected } but found eof //JsonEmport.doImport(JSON.stringify({"dataPoints": dataPoints})); ^ at line: 8, column: 90 at line: 8, column: 9
    

    posted in How-To read more
  • P
    Phillip Weeks

    I am trying to bulk edit the rendering properties of a point and it is saying an error is the XID is already in use?? So am I doing something incorrect here?

    No BULK edit feature working is a pain since I the export for csv was removed .

    posted in How-To read more
  • P
    Phillip Weeks

    I would like to hard code the date.to and date.from on my dashboard. Not sure how to initially set with ng-init the date.from to Date("2019-01-01") and date.to Date("2019-12-01") ?

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

    Further to that I recursed one more level to successfully fetch the previous value. So what is going on that I have to do it twice to see the increment. I understood this function would return the value directly before the time passed in?

    var KWBF1 = KW.pointValueBefore(KW.time);
    var KWBF2= KW.pointValueBefore(KWBF1.time);
    print(KWBF1.value);
    print(KWBF2.value);
    print(KW.pointValueBefore(KW.time).value);
    print(KW.value);

    Success. result=Success, no new value, timestamp=13:09:36
    6622.0
    6621.0
    6622.0
    6622

    posted in User help read more
  • P
    Phillip Weeks

    Wondering why this code is producing the same values with data that has unique values. I use.pointValueBefore to get the previous value for comparison and the function seems to have stopped working.

    0_1575736076094_a7b6b31f-9637-479a-ba91-cb09abbaf0ea-image.png

    print( KW.pointValueBefore(KW.time).value);
    print(KW.value);

    Success. result=Success, no new value, timestamp=12:53:54
    6620.0
    6620

    both produce the same result value so what is going on here?

    posted in User help read more
  • P
    Phillip Weeks

    Thank-you guys .. lots of useful info :)

    posted in How-To read more
  • P
    Phillip Weeks

    Is there a way I can enable or disable a <ma-switch control using an expression such as user permission

    posted in How-To read more