Facility Control

 View Only
  • 1.  Dashboard Task - Get Label Name

    Posted 11-30-2016 21:51
    Hi All!

    Newbie here trying to figure out how to get the name of a label via a task. Something along these lines...

    var name = this.getName();
    ogscript.debug(name);

    Any thoughts?

    Thanks!

    CJ


  • 2.  RE: Dashboard Task - Get Label Name

    Posted 12-01-2016 18:22
    Hi CJ.
    There is currently no way to get the name/text of a

    One option might be to use a string parameter. You can display it as a label (by selecting label as the widget type) and get/set its value with params.getValue('OID', 0) and params.setValue(OID, 0, 'NEW VALUE').
    #DashBoard


  • 3.  RE: Dashboard Task - Get Label Name

    Posted 12-01-2016 19:38
    Thanks James! That's working perfectly.

    CJ
    #DashBoard