• 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

    Event Handlers not saving after Mango 3

    User help
    2
    3
    1.2k
    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.
    • G
      glamprecht
      last edited by glamprecht

      Hello

      I can no longer create or edit new event handlers running processes.

      When saving event handler PROCESS I get this error. I also noticed that the "command" under Process of all the event handlers that existed previously is also gone.

      I am running Version 3.3.4. I updated to latest to see if it helps.

      WARN 2018-04-11T13:09:27,407 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: Uncaught TypeError: Cannot read property 'dataSourcePermissions' of undefined Page: http://myURL/event_handlers.shtm Line: 1557 Browser name: Chrome Browser version: 65 osName: Windows location: http://myURL/event_handlers.shtm

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

        Hi glamprecht,

        Thanks for bringing that to our attention. I have fixed it. The good news is you can fix it without updating or restarting by editing Mango/web/WEB-INF/tags/scriptPermissions.tag

        Changing the function,

        function setScriptPermissions(permissions){
        	$set('scriptDataSourcePermission', permissions.dataSourcePermissions);
        	$set('scriptDataPointSetPermission', permissions.dataPointSetPermissions);
        	$set('scriptDataPointReadPermission', permissions.dataPointReadPermissions);
        }
        

        to

        function setScriptPermissions(permissions){
        	if(typeof permissions === 'object') {
        		$set('scriptDataSourcePermission', permissions.dataSourcePermissions);
        		$set('scriptDataPointSetPermission', permissions.dataPointSetPermissions);
        		$set('scriptDataPointReadPermission', permissions.dataPointReadPermissions);
        	}
        }
        

        You may need to delete your Mango/work/jsp directory as well.

        1 Reply Last reply Reply Quote 0
        • G
          glamprecht
          last edited by

          This worked. Thank you.

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