diff --git a/Client-Side Components/UI Pages/BulkUpdate Worknotes/List Button.png b/Client-Side Components/UI Pages/BulkUpdate Worknotes/List Button.png new file mode 100644 index 0000000000..8daf4a35be Binary files /dev/null and b/Client-Side Components/UI Pages/BulkUpdate Worknotes/List Button.png differ diff --git a/Client-Side Components/UI Pages/BulkUpdate Worknotes/Readme.md b/Client-Side Components/UI Pages/BulkUpdate Worknotes/Readme.md new file mode 100644 index 0000000000..09ff84e7b4 --- /dev/null +++ b/Client-Side Components/UI Pages/BulkUpdate Worknotes/Readme.md @@ -0,0 +1,11 @@ + +Bulk Update Worknotes + +Script Type: UI Action, Table: incident, List banner button: True, Client: True, Show update: True, OnClick: functionName() + +Script Type: UI Page Category: General + +Goal: To update the worknotes for multiple tickets in a single view + +Walk through of code: So in the incident List view we do have a list banner button called "Bulk Updates" so that was the UI Action configured with the script which has used the GlideModel API to call the UI page which is responsible to get the multiple tickets and worknotes value and then update to the respective ticket and store in the worknotes in journal entry. For this the HTML part in the UI page is configured with two fields, one for the multiple list of tickets, and then the worknotes field, and one submit button to save that into the table. +And the Processing Script is used to get each ticket number and then check the valid tickets and query the respective table, and then update the worknotes of each respective ticket if it is valid. Otherwise, it won't update. diff --git a/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Action.js b/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Action.js new file mode 100644 index 0000000000..43c936646e --- /dev/null +++ b/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Action.js @@ -0,0 +1,7 @@ +// Table: incident, List banner button: True, Client: True, Show update: True, OnClick: bulkupdate() + +function bulkupdate() { + var modalT = new GlideModal("BulkUpdate", false, 1200); + modalT.setTitle("Bulk Update Worknotes"); + modalT.render(); +} \ No newline at end of file diff --git a/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Page_ClientScript.js b/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Page_ClientScript.js new file mode 100644 index 0000000000..aa8e3ae275 --- /dev/null +++ b/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Page_ClientScript.js @@ -0,0 +1,5 @@ +function bulkupdate() { + document.getElementById("spinner-btn").style.display = "block"; + document.getElementById("submit-btn").style.display = "none"; + +} \ No newline at end of file diff --git a/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Page_HTML.html b/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Page_HTML.html new file mode 100644 index 0000000000..a904187fb7 --- /dev/null +++ b/Client-Side Components/UI Pages/BulkUpdate Worknotes/UI Page_HTML.html @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + +
+
+ +