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 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