From ee0da10d97fd1bd628c8ddbd64304523f4d84ab8 Mon Sep 17 00:00:00 2001 From: Kart-19 <92006241+Kart-19@users.noreply.github.com> Date: Wed, 29 Oct 2025 18:18:39 +0530 Subject: [PATCH 1/2] Show Open Incident of caller Show Open Incident of caller --- .../Show Open Incident of Caller/macro.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Client-Side Components/UI Macros/Show Open Incident of Caller/macro.js diff --git a/Client-Side Components/UI Macros/Show Open Incident of Caller/macro.js b/Client-Side Components/UI Macros/Show Open Incident of Caller/macro.js new file mode 100644 index 0000000000..440bb8cfe0 --- /dev/null +++ b/Client-Side Components/UI Macros/Show Open Incident of Caller/macro.js @@ -0,0 +1,16 @@ + + + + + + + + \ No newline at end of file From 3879c81967bb4208174d7bce248674d7c2c89df0 Mon Sep 17 00:00:00 2001 From: Kart-19 <92006241+Kart-19@users.noreply.github.com> Date: Wed, 29 Oct 2025 18:23:04 +0530 Subject: [PATCH 2/2] Added Readme file --- .../Show Open Incident of Caller/Readme.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Client-Side Components/UI Macros/Show Open Incident of Caller/Readme.md diff --git a/Client-Side Components/UI Macros/Show Open Incident of Caller/Readme.md b/Client-Side Components/UI Macros/Show Open Incident of Caller/Readme.md new file mode 100644 index 0000000000..9f5883d95a --- /dev/null +++ b/Client-Side Components/UI Macros/Show Open Incident of Caller/Readme.md @@ -0,0 +1,21 @@ +Show Open Incident of caller + +Script Type: UI Macro + +Goal: In Form view caller can see what are the open incident of that particular caller. + +Walk through of code: So for this use case a new macro will be added to the caller field, when it is triggered it will open a new popup window where it will show the list of particular caller which are all open incident.So for this a new UImacro have been used in that a new list icon have been rendered from the db_image table and inside that a showopentckts() function this will get the current caller and then add the query to filter out the list of open incident and then open a popup to show the list of that particular caller which are all open(other than Closed and Cancelled). + +Note: To inherite the UI Macro in that particular field (Caller) we need to add the attribute in the Dictionary Entry = ref_contributions=caller_inc_lists [ref_contributions="name of the macro"] + +UI Macro +UIMacro + +Dictonary Entry in Attribute section +UIMacroDictionary + +UI Macro in Incident Form near the Caller Field +From UIMacro + +Result: +UIMacro Result