diff --git a/entity/Notification_entity/Notification_entity.aod b/entity/Notification_entity/Notification_entity.aod index e60a97235ff7fbf69d6ec0af1c7247fc4ea5715d..e337c20729da7f4ec81700f9c180257929b0c5e0 100644 --- a/entity/Notification_entity/Notification_entity.aod +++ b/entity/Notification_entity/Notification_entity.aod @@ -120,6 +120,10 @@ </entityActionField> </children> </entityActionGroup> + <entityActionField> + <name>rowClickAction</name> + <onActionProcess>%aditoprj%/entity/Notification_entity/entityfields/rowclickaction/onActionProcess.js</onActionProcess> + </entityActionField> <entityField> <name>RESOLVEDPRIORITY</name> <title>priority</title> diff --git a/entity/Notification_entity/entityfields/rowclickaction/onActionProcess.js b/entity/Notification_entity/entityfields/rowclickaction/onActionProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..5ee955fd6389e03589d671d10bb0f51aa70a8bb2 --- /dev/null +++ b/entity/Notification_entity/entityfields/rowclickaction/onActionProcess.js @@ -0,0 +1,12 @@ +import("system.vars"); +import("system.tools"); +import("system.notification"); +import("system.neon"); + +var user = tools.getCurrentUser(); +var selectedNotifications = vars.get("$sys.selection"); + +for(var i = 0; i < selectedNotifications.length; i++) + notification.updateUserNotificationState(user["name"], selectedNotifications[i], notification.STATE_CONFIRMED); + +neon.refresh(); \ No newline at end of file diff --git a/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js b/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js index 608c454e87cb33460b61a4999fb77372ccaab864..5ee955fd6389e03589d671d10bb0f51aa70a8bb2 100644 --- a/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js +++ b/entity/Notification_entity/entityfields/setnotificationstate/children/setread/onActionProcess.js @@ -9,4 +9,4 @@ var selectedNotifications = vars.get("$sys.selection"); for(var i = 0; i < selectedNotifications.length; i++) notification.updateUserNotificationState(user["name"], selectedNotifications[i], notification.STATE_CONFIRMED); -//neon.refreshAll(); \ No newline at end of file +neon.refresh(); \ No newline at end of file diff --git a/neonView/NotificationFilter_view/NotificationFilter_view.aod b/neonView/NotificationFilter_view/NotificationFilter_view.aod index a2eda9d9af17a2dadc1d46e0a225746d3ad5c366..bb14afb0a269a9c52da65d1333fc78f34be935ee 100644 --- a/neonView/NotificationFilter_view/NotificationFilter_view.aod +++ b/neonView/NotificationFilter_view/NotificationFilter_view.aod @@ -38,7 +38,7 @@ <name>NotificationTable</name> <favoriteActionGroup1>setNotificationState</favoriteActionGroup1> <inlineEdit v="true" /> - <entryAction></entryAction> + <entryAction>rowClickAction</entryAction> <iconField>ICON</iconField> <titleField>CAPTION</titleField> <subtitleField>RESOLVEDPRIORITY</subtitleField>