• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Elena
    3. Topics

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    E
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Groups 0

    Topics

    • E

      Email Event Handler - support for multistate and binary values

      Watching Ignoring Scheduled Pinned Locked Moved Dashboard Designer & Custom AngularJS Pages
      6
      0 Votes
      6 Posts
      1k Views
      MattFoxM
      Here is something I have written for you to pull the rendered text values for binary and multistate points. Now you can use the created object to "map" your current values to their rendered text equivalents... If you don't understand how this works, feel free to yell out. var rql="or("; var items=[] //Get all points attached to the script context for(var i in CONTEXT_POINTS) { items.push('eq(xid,'+this[ i].getDataPointWrapper().xid+')'); } //Build RQL query rql+=items.join(',') + ')'; //get configs of all of these points var dataPoints=JSON.parse(JsonEmport.dataPointQuery(rql)).dataPoints; var ptMap={}; //Iterate through to get the rendered values for(var i=0;i<dataPoints.length;i++) { ptMap[ dataPoints[ i ].xid ] = {}; if(dataPoints[i ].textRenderer.type==="BINARY") { //Set Binary renderedValues ptMap[ dataPoints[ i].xid ][0] = dataPoints[ i].textRenderer.zeroLabel; ptMap[ dataPoints[i ].xid ][1] = dataPoints[i ].textRenderer.oneLabel; } else if(dataPoints[i ].textRenderer.type==="MULTISTATE") { //Or get the multistate values for(var j=0;j<dataPoints[i ].textRenderer.multistateValues.length;j++) { ptMap[ dataPoints[i ].xid ][dataPoints[ i].textRenderer.multistateValues[j].key] = dataPoints[ i].textRenderer.multistateValues[j].text; } } } //Print here just to show format of mapping. Can comment out. print(JSON.stringify(ptMap) ); //so ptMap[xid][ ptValue ] => renderedValue Fox
    • E

      How to log out a user from Mango

      Watching Ignoring Scheduled Pinned Locked Moved How-To
      11
      0 Votes
      11 Posts
      3k Views
      M
      @MattFox @Elena Hi! We made changes then restarted Mango (both v3.7.7 and 4.0.0.beta3). Mango forced the user to log in again. But it doesn't consider user inactivity. Even if the user is actively working, Mango forces to log out after a period of time.