Facility Control

 View Only
  • 1.  Retrieve ID of button as string

    Posted 10-31-2016 06:40
    Hi there,

    I'm trying to retrieve the ID of a button within its task ogscript but not sure how to go about this.

    I have been playing with the this reference but it seems to only return a null object everytime I call it from the task
    I don't need to change the ID, just read it.

    Is there any built-in methods to achieve this?


    Thanks for your help!


  • 2.  RE: Retrieve ID of button as string

    Posted 10-31-2016 12:46
    Is it a tag or is it a tag that produces a button?
    If it is a tag, you can use this.getOid(); to get the OID of the parameter.

    At present, there is no mechanism to get the ID attribute of the XML tag from within the ogScript.
    #DashBoard


  • 3.  RE: Retrieve ID of button as string

    Posted 10-31-2016 16:15
    Yes it is a button tag.

    Very well I'll just have to manually set an ID variable on each button in that case.

    Thanks for your response!
    #DashBoard