• 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

    Global Script Validation Requires Save

    Scripting general Discussion
    2
    2
    954
    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.
    • P
      pyeager
      last edited by pyeager

      I have just updated core to 3.6.4, and have discovered that a global script must be saved before validation "sees" the current state of the script.

      If I remember correctly, I used to be able to edit a script and have validation operate on the current state of the script without having to first save the script.

      This old behavior seems to be preferable, both for convenience and to be able to edit a script and test it without affecting the script being used by the system until a change can be made and tested.

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

        Hi pyeager,

        Sort of! I think what's happening is that the saved global script is being executed prior to the script that's attempting to be validated (and any other global scripts too for that matter) and so if there is an issue in the previous script saving will be necessary, as it will throw the script error. This was brought to our attention in a previous thread and there is a git issue open in the global scripts' repo about it, but that repo is private.

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