• Recent
    • Tags
    • Popular
    • Register
    • Login

    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

    Data source Scripting

    Mango Automation general Discussion
    3
    6
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fabier
      last edited by

      Hello.

      I Can create a Data source Scripting to developed scripts of my signals, now, I would like create logical variable to be use in the dashboard. I created data point in the data source the scripting, but I don't know as I can use this data point in my script.

      Can you help me? Thanks

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        When you create a Data Point in a scripting Data Source you give the Data Point a Variable name. This is the name you can refer to in your script like name.value. Just like the other variables for other Data Points like p1.value.

        1 Reply Last reply Reply Quote 0
        • F
          Fabier
          last edited by

          Thanks.

          I tested your solution, but, I don't see changes in the variables. for example. I use this instruction:

          XR.value=false;

          In this case my data point have than change to false, but isn´t happen.

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            Hi Fabier,

            If your data point is settable, you can do,

            XR.set(false);
            

            Be sure to read the Mango JavaScript help dialogue. You can find in in the related items section on point links, scripting data sources, meta data sources and global scripts, or here: https://help.infiniteautomation.com/about-mango-java-script/

            The most up to date version is here: https://github.com/infiniteautomation/ma-core-public/blob/main/Core/web/WEB-INF/dox/mangoJavaScript.htm

            1 Reply Last reply Reply Quote 0
            • F
              Fabier
              last edited by

              Thank you.

              My aplication run good.

              1 Reply Last reply Reply Quote 0
              • phildunlapP
                phildunlap
                last edited by

                Glad to hear it!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post