From 26f0aa63716ba5eb5ef11413503d39b53c4a2e46 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 7 Jan 2025 02:07:05 -0800 Subject: [PATCH] Notes Netanel Huri --- README.md | 2 - ...idget_0180dd0c5387d2109cc57ab0a0490ebc.xml | 135 ++++++++++++ checksum.txt | 2 +- sn_source_control.properties | 10 + ...idget_06948fa8db3133000613a08a4896194c.xml | 192 ++++-------------- ...idget_557d45c45387d2109cc57ab0a0490e74.xml | 88 ++++++++ 6 files changed, 275 insertions(+), 154 deletions(-) create mode 100644 author_elective_update/sp_widget_0180dd0c5387d2109cc57ab0a0490ebc.xml create mode 100644 sn_source_control.properties create mode 100644 update/sp_widget_557d45c45387d2109cc57ab0a0490e74.xml diff --git a/README.md b/README.md index 03580841..455baff5 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # Generated files This repository contains generated files and a checksum. -**Do not edit the files in this repository outside of an instance of ServiceNow.** - If you find yourself unable to import your repository due to the presence of files edited outside an instance of ServiceNow, merge commits that mix files from different revisions, or other data that does not match the checksum, you may recover using either of the following techniques: * Remove the problem commits: 1. Clone your repository to a personal computer with the git command line tools installed and open a git command prompt in the repository root diff --git a/author_elective_update/sp_widget_0180dd0c5387d2109cc57ab0a0490ebc.xml b/author_elective_update/sp_widget_0180dd0c5387d2109cc57ab0a0490ebc.xml new file mode 100644 index 00000000..2bc12ffc --- /dev/null +++ b/author_elective_update/sp_widget_0180dd0c5387d2109cc57ab0a0490ebc.xml @@ -0,0 +1,135 @@ + + + custom + + c + + sp_instance + + + + + false + note_list + false + + Note List + + false + + + false + sp_widget + admin + 2025-01-07 09:38:59 + 0180dd0c5387d2109cc57ab0a0490ebc + 2 + Note List + df5fd9a5090232007f44e1046c8ff69f + + df5fd9a5090232007f44e1046c8ff69f + sp_widget_0180dd0c5387d2109cc57ab0a0490ebc + admin + 2025-01-07 09:39:44 + + + + DELETE + df5fd9a5090232007f44e1046c8ff69f + + 316f7d97db71315002d917291396191f + dev186943 + sp_widget_0180dd0c5387d2109cc57ab0a0490ebc + <?xml version="1.0" encoding="UTF-8"?><record_update table="sp_widget"><sp_widget action="INSERT_OR_UPDATE"><category>custom</category><client_script><![CDATA[api.controller=function() { /* widget controller */ var c = this;};]]></client_script><controller_as>c</controller_as><css/><data_table>sp_instance</data_table><demo_data/><description/><docs/><field_list/><has_preview>false</has_preview><id>note_list</id><internal>false</internal><link><![CDATA[function link(scope, element, attrs, controller) { }]]></link><name>Note List</name><option_schema/><public>false</public><roles/><script><![CDATA[(function() { +//create an array to populate with notes +data.notes = []; +var noteGR = new GlideRecord('x_snc_createnotes_note'); +noteGR.addQuery('user', gs.getUser().getID()); +noteGR.orderByDesc('sys_created_on'); +noteGR.query(); +while (noteGR.next()) { +var noteObj = {}; +//use service portal helper method to get some display values +$sp.getRecordDisplayValues(noteObj, noteGR, 'number,title,sys_id'); +//get the first 20 characters of the description +noteObj.note = noteGR.getValue('note').slice(0,20); +//push the populated obj into the array +data.notes.push(noteObj); +} +})();]]></script><servicenow>false</servicenow><sys_class_name>sp_widget</sys_class_name><sys_created_by>admin</sys_created_by><sys_created_on>2025-01-07 09:38:59</sys_created_on><sys_id>0180dd0c5387d2109cc57ab0a0490ebc</sys_id><sys_mod_count>2</sys_mod_count><sys_name>Note List</sys_name><sys_package display_value="CreateNotes" source="x_snc_createnotes">df5fd9a5090232007f44e1046c8ff69f</sys_package><sys_policy/><sys_scope display_value="CreateNotes">df5fd9a5090232007f44e1046c8ff69f</sys_scope><sys_update_name>sp_widget_0180dd0c5387d2109cc57ab0a0490ebc</sys_update_name><sys_updated_by>admin</sys_updated_by><sys_updated_on>2025-01-07 09:39:44</sys_updated_on><template><![CDATA[<div class="panel panel-default"> + <div class="panel-heading clearfix"> + <h3 class="panel-title pull-left"> + ${Notes} + </h3> + </div> + <div class="panel-body"> + <p> + Notes list widget + </p> + </div> + </div>]]></template></sp_widget></record_update> + -1007917679 + Note List + + 6257cdcc5347d2109cc57ab0a0490e08 + sys_update_set + previous + admin + 2025-01-07 09:39:44 + 80b0554c5387d2109cc57ab0a0490ed1 + 0 + 1944022676f0000001 + admin + 2025-01-07 09:39:44 + Widget + 08b0554c5287d210239e2a16ce58ccd0 + 08b0554c5287d210239e2a16ce58ccd0:-1007917679,4c90d14c8687d21021254eb352ff1256:-414694983,0580914c3d87d210c769148f2c83dc44:497020104 + + + 06811d4c5387d2109cc57ab0a0490e3e + sys_metadata_delete + admin + 2025-01-07 09:43:25 + sp_widget + 14d73c9581964ac085f7589c86e57a04 + 0180dd0c5387d2109cc57ab0a0490ebc + 0 + Note List + df5fd9a5090232007f44e1046c8ff69f + + + df5fd9a5090232007f44e1046c8ff69f + 64daa03572704d49a928bf08a985d6f9 + sp_widget_0180dd0c5387d2109cc57ab0a0490ebc + 80b0554c5387d2109cc57ab0a0490ed1 + admin + 2025-01-07 09:43:25 + + diff --git a/checksum.txt b/checksum.txt index a47042c7..6d883756 100644 --- a/checksum.txt +++ b/checksum.txt @@ -1 +1 @@ -d2U7D3lEXSO0bAu13MihfYP_P8Ml90xy8nG72I3u7fnpBTkbyr0i812Y1AkdZb2zC8ZtwN4Yw1qj5Xix0qb9fHv2LWMRgFpbfI1RRdTc69FWEKVZm1_y1_mugkk5DpVfQlnyLViS4hwmN7G2JIvb8yrIgCAX05-8WR24Q_Z4tGLiYYY4sg_zaCCJWk5YGoYnsdGSytoE47H7aUvM7tRNEUyKSFx6LzIG7P6G8m4yNVTgyaQuPcB0XUl1k6LUGUeAmSt_XOub-l_Zq_WyFwtl_akHJIn7v1ooX1zVp6tgBm_GjqOONfdhcHEarnw65bemU7X_K78tZrmpZ3UKvjSf92Xv86q8_0UifW_oKxynZi_yNLWQ0zy7cr6ehXVrvVnmVAFrry9MX9d_I6sFt9q3nIrD2zDSNWeVLCu9iAmi_hTkqMibrz8xkxXnBi7FTTZcY5iHcdf4TDjareP-MxWp_UtCPeRRKu2m0UXRyyqBmPjei38oLFY2MqI0EBum9YuyDZEAYNauHU0JfKLild-hdbhNh5u0N1AmfEWmL_WB8CgQgGS8KrGZDRN05ylulnvPkufCvHdEpOGWk3fhVK1A5EYIzlPNEUkhLhOo_TWiHh7YZQJ9SQXM1pPO_9ziXJ7cUtkln90tN5zpuTWfk6ZgrADXiN2Rh2bOVYHfLfWwy8Q \ No newline at end of file +NzkQKo8ZBKwNkyXVG8oA54YhiMKQ_TTyy4I0ORnpAgzOe5gkPSrhEHGt6gW67bNX0ACthdaNC2pxJOaFTLLbNF4FheAjn4UCWWmB3a6fEN82CfrkAGen6-BKnAWZxUhanMgd5LPRK6LNWQcILn_qKXHcg8NCOqqnJXp44HS_YwYRTPfrPQx1vrI53EF-xjZdi4QU_9nlZj7J-x87qs10IAqLbIqjjpqUVjrC0K-L7CLtwkkJnifxJbYVFz-IDI8eLXdoD4FwH2VDthzlBv-Y9hueqF7suHg-QvspBpEcV7CrHGdIiHHbFc_empoOdd5RyOkfyk2MJ6wyZWSlAtMQMAhjjV5Z6YzA3yBugUU0jajvfrkueJ9yA-22lVYuP2kN414aAL9qP3CXTD3WsaGPITFpQ7vyiesO8W8xH6tEgny5x0tP64kG03tUQmn1IUoteb32ncTyIGJM4yqFP4PgI-8pLqXwcvkz38jLXWoYACo777Qn4_awVY_HsMS134r9URwvs5B4tm2QzlPfIdrFMt5bR1xrwp8Cds7raw0bLDuXaz6_NW7oEDogng-3c9mLdpJu-T5055UKRG9qpP3VTvsTG534kVvt3Uu2fOo4HmuTyVA13Ej3334j_MxgeH9D1BDwAaa8rVq5-XiKOtZX4bMevRXyS59Z1qcIJ1u_5b8 \ No newline at end of file diff --git a/sn_source_control.properties b/sn_source_control.properties new file mode 100644 index 00000000..24d8e3ac --- /dev/null +++ b/sn_source_control.properties @@ -0,0 +1,10 @@ +############################################################# +# This ServiceNow-created file contains the path to the app in this repo +# path= +# For example, if the app content resides in a folder named x_my_custom_app, the path value would be: +# path=/x_my_custom_app +# Update the path value when you move the app to a new repo location. +############################################################ +# +#Tue Jan 07 02:06:31 PST 2025 +path= diff --git a/update/sp_widget_06948fa8db3133000613a08a4896194c.xml b/update/sp_widget_06948fa8db3133000613a08a4896194c.xml index 687f0cb6..857e3a7b 100644 --- a/update/sp_widget_06948fa8db3133000613a08a4896194c.xml +++ b/update/sp_widget_06948fa8db3133000613a08a4896194c.xml @@ -1,92 +1,16 @@ custom - + c h3.panel-title { font-size:20px; @@ -106,84 +30,50 @@ false +})();]]> false sp_widget admin 2019-05-30 18:13:04 06948fa8db3133000613a08a4896194c - 15 + 19 Notes List df5fd9a5090232007f44e1046c8ff69f df5fd9a5090232007f44e1046c8ff69f sp_widget_06948fa8db3133000613a08a4896194c admin - 2019-05-30 23:08:20 + 2025-01-07 09:49:42 diff --git a/update/sp_widget_557d45c45387d2109cc57ab0a0490e74.xml b/update/sp_widget_557d45c45387d2109cc57ab0a0490e74.xml new file mode 100644 index 00000000..a1a23b30 --- /dev/null +++ b/update/sp_widget_557d45c45387d2109cc57ab0a0490e74.xml @@ -0,0 +1,88 @@ + + + custom + + c + + sp_instance + + + + + false + notes_body + false + + Notes Body + + false + + + false + sp_widget + admin + 2025-01-07 09:25:37 + 557d45c45387d2109cc57ab0a0490e74 + 7 + Notes Body + df5fd9a5090232007f44e1046c8ff69f + + df5fd9a5090232007f44e1046c8ff69f + sp_widget_557d45c45387d2109cc57ab0a0490e74 + admin + 2025-01-07 10:04:17 + + +