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.
Event handler import doesn't work
-
Hi,
I have encountered a problem with configuration import.
Event handler import fails:

Event handler configuration:

Event handlers json code:
"eventHandlers":[
{
"xid":"EH_S1.01_LOCREM_CHANGED",
"activeAction":"SCRIPT_VALUE",
"inactiveAction":"NONE",
"activeScript":"if(locrem.value){\n return sp.value*10;\n}else{\n return 65535;\n}",
"handlerType":"SET_POINT",
"targetPointId":"DP_S1.01_FORCE_TEMP",
"alias":"",
"disabled":false,
"scriptPermissions":{
"scriptDataPointReadPermission":"superadmin",
"scriptDataPointSetPermission":"superadmin",
"scriptDataSourcePermission":"superadmin"
},
"eventTypes":[
{
"sourceType":"DATA_POINT",
"dataPointXID":"DP_S1.01_LOCAL_REMOTE",
"detectorXID":"ED_S1.01_LOCREM_CHANGED"
}
],
"additionalContext":[
{
"contextKey":"locrem",
"dataPointXid":"DP_S1.01_LOCAL_REMOTE"
},
{
"contextKey":"sp",
"dataPointXid":"DP_S1.01_SETPOINT"
}
]
}
...I use mango enterprise with core 3.4.5.
Can anyone confirm the problem?
-
Hi BlueSoft, welcome to the forum!
Yes, I can confirm the problem. I found the cause and fixed it, which will be in the next 3.5 release. Thanks for bringing this to our attention! The problem is that the active / inactive scripts are not being set on the import, which means you cannot create a new event handler that is using scripts or modify an existing script through the configuration import / export.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login