-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the auto number to the API Table and beautified the API Table f…
…orm using form design (#49) * Configuration of the API Points table form and the setup of a new UI Policy to make certain fields mandatory. * Update README.md Updated the README with the below: Configuration of the API Points table form and the setup of a new UI Policy to make certain fields mandatory. * Added the auto number to the API Table and beautified the API Table form using form design * Added the auto number to the API Table and beautified the API Table form using form design * Update and rename sys_db_object_d47a3b43473d35104fb86285d36d4380.xml to sys_db_object_d4ba90c1db629150791d8f8d139619cb.xml Undo accidental table sys_id change --------- Co-authored-by: admin <admin@example.com> Co-authored-by: Astrid Sapphire <59789839+SapphicFire@users.noreply.github.com>
- Loading branch information
1 parent
0b9df71
commit b5714f1
Showing
18 changed files
with
630 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1 @@ | ||
# Generated files | ||
This repository contains generated files and a checksum. | ||
|
||
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 | ||
2. Run `git log` and take note of the SHA1s of the problem commits | ||
3. Build revert commits using `git revert SHA1` repeatedly, working backward in time, for each commit that introduced changes not generated by a ServiceNow instance | ||
4. Run `git push` | ||
|
||
* Overwrite the problem code snapshot with a known good one: | ||
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, | ||
2. Locate a known good code snapshot and record its SHA1. For this step, `git log` can be useful. | ||
2. Run `git reset --hard SHA1` to a commit that was generated by a ServiceNow instance | ||
3. Run `git reset HEAD{1}` | ||
4. Run `git add -A` | ||
5. Run `git commit` | ||
6. Run `git push` | ||
Added the auto number to the API Table and beautified the API Table form using form design |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4SkNf5XPjK0s_NfOW_aBTzkAf0jCxfWNVVupQk3itYxbYY_g3RSjs5gjzp8Gil5M-erjm-0D-vKGBPJEOaC11sTWAPXBXUK_wdavER5MhpiPq6VwQtVb9ASVjpHru3WCGAdh1pPhrNcuxpgaj7lC7IP4AqyfxQ1r8xq53i6rsTCLRSwR29VR27eCPBYZYnc3UhRmckj9Zd3T2pKrogh2v7DTVTqVkWbzBwMKBre76d8dNgKmnK0DLShpyd_5XK1rg0EiVF5hkxveU2DNFxm6fz3z6csv6-K14Nsz8mQzntpPjbwKhA-bacNdO09vzPjar3-9Mk0bIN2LoW07OXnqwIWzYFrz_daPhm04shr-SJ7P0Mjd2XszfUPwSdqMK8bBQTVglN4IMPEcRfFmIdhp3awrYVC1BcaIs9SsQt59zoXXOtdpt3O56Ca_o8o1ceT9bYicFEBZh70FLpxmiyZ8dBp2KfG_bj35TGDfDkpTsI3sI2vZE9YmXp-IfOKVIfnIPMutRNo20Fp0rGm5G2iO-dlML4oUs5JNNCg_uM1stWxGx3mcOXzuyIOTDWIum-BrV8dL6lmG_rxwUAIPcZdeWHFN0KQ_JmmKuGAqD5p8jIqIJj3dK71jZjr6jtozBDNS6LK6LY6LaO-yYwo0GRDa7CTko-0RyPCPDod-6-0Jgic | ||
wJCjhxAdQk4tgta4tTXKlOEAw2fEL722MYSmQHPBrXvlM3-2JbiFxf80lxSmGkaqx4znlMkUN32X8eO_waF_1atA0QirHDbzlNNnEtqLCm7O4XYU8PBSsTEyZ7_f1hnIsctwZJzHrAyFXuoeEwWDcpP19O6NrWC__NhuEmKTkRJ5TUd3PRvyVH4EtAt2W5Ss0BWhWMhFsSSm3LcJmWOdVNtBWeihpW_SlIaa3eN1oOjJ4zqoDA79bJKOxtuJF-gfZ2X9MVji4KdTwIgIYpux6RDrWYHICTppNe_zUayc8al5upQ1WQUuWhUFWaRPIm5l0jW2UQTbcY_rH0kJdkxLIDLj8jlBgJvozMMSVuJAYxwtJN8Bujmu2D0aN0REaN7YBZbRk-0LpOpWqN6av58AfwhvLgiTF3GPpYd_feyLbmjJn6kZc788cvQGeMy8oKypfyKHxwG8I7TguUUYD6fo7Sya2o52HS8FW9xWmq9spOcOEyCwYypOMNUJcnxvYksOwJeAS012DPK8XoniZjIvZe6NEWNkeTUy_qB-8LnAnBI1YcEFbRUqXQv_jmKkc_lFgqMG8YRraDgOw3LlUfAc4oZoG5UAl5625OknB64vHlmX_A5gLoIY95UpHGCiW5oOjbug2IIXGLpVIH1xUGN5TZDwSjUlR5LrVCq7go08hS8 |
5 changes: 3 additions & 2 deletions
5
9c7718cddb229150791d8f8d13961979/dictionary/x_snc_pointsthing_api_point.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
9c7718cddb229150791d8f8d13961979/dictionary/x_snc_pointsthing_user.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><database> | ||
<element db_object_id="8e948c5c475ca510e628d855d36d4368" label="User" max_length="40" name="x_snc_pointsthing_user" type="collection"> | ||
<element label="Name Updated" max_length="40" name="name_updated" read_only="true" type="glide_date_time"/> | ||
<element display="true" label="User name" max_length="40" name="user_name" read_only="true" type="string"/> | ||
<element default="0" label="Points" max_length="40" name="points" type="integer"/> | ||
<element label="User ID" max_length="40" name="user_id" type="string"/> | ||
<element display="true" label="User name" max_length="40" name="user_name" type="string"/> | ||
</element> | ||
</database> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
...18cddb229150791d8f8d13961979/update/sys_dictionary_x_snc_pointsthing_api_point_number.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><record_update> | ||
<sys_dictionary action="INSERT_OR_UPDATE" element="number" table="x_snc_pointsthing_api_point"> | ||
<active>true</active> | ||
<array>false</array> | ||
<attributes>ignore_filter_on_new=true</attributes> | ||
<audit>false</audit> | ||
<calculation><![CDATA[(function calculatedFieldValue(current) { | ||
// Add your code here | ||
return ''; // return the calculated value | ||
})(current);]]></calculation> | ||
<choice/> | ||
<choice_field/> | ||
<choice_table/> | ||
<column_label>Number</column_label> | ||
<comments/> | ||
<create_roles/> | ||
<default_value>javascript:global.getNextObjNumberPadded();</default_value> | ||
<defaultsort/> | ||
<delete_roles/> | ||
<dependent/> | ||
<dependent_on_field/> | ||
<display>false</display> | ||
<dynamic_creation>false</dynamic_creation> | ||
<dynamic_creation_script/> | ||
<dynamic_default_value/> | ||
<dynamic_ref_qual/> | ||
<element>number</element> | ||
<element_reference>false</element_reference> | ||
<foreign_database/> | ||
<formula/> | ||
<function_definition/> | ||
<function_field>false</function_field> | ||
<internal_type display_value="String">string</internal_type> | ||
<mandatory>false</mandatory> | ||
<max_length>40</max_length> | ||
<name>x_snc_pointsthing_api_point</name> | ||
<next_element/> | ||
<primary>false</primary> | ||
<read_only>true</read_only> | ||
<read_roles/> | ||
<reference/> | ||
<reference_cascade_rule/> | ||
<reference_floats>false</reference_floats> | ||
<reference_key/> | ||
<reference_qual/> | ||
<reference_qual_condition/> | ||
<reference_type/> | ||
<spell_check>false</spell_check> | ||
<staged>false</staged> | ||
<sys_class_name>sys_dictionary</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2024-10-01 17:31:12</sys_created_on> | ||
<sys_name>Number</sys_name> | ||
<sys_package display_value="Points Thing" source="x_snc_pointsthing">9c7718cddb229150791d8f8d13961979</sys_package> | ||
<sys_policy/> | ||
<sys_scope display_value="Points Thing">9c7718cddb229150791d8f8d13961979</sys_scope> | ||
<sys_update_name>sys_dictionary_x_snc_pointsthing_api_point_number</sys_update_name> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2024-10-01 17:37:46</sys_updated_on> | ||
<table_reference>false</table_reference> | ||
<text_index>false</text_index> | ||
<unique>false</unique> | ||
<use_dependent_field>false</use_dependent_field> | ||
<use_dynamic_default>false</use_dynamic_default> | ||
<use_reference_qualifier>simple</use_reference_qualifier> | ||
<virtual>false</virtual> | ||
<virtual_type>script</virtual_type> | ||
<widget/> | ||
<write_roles/> | ||
<xml_view>false</xml_view> | ||
</sys_dictionary> | ||
</record_update> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...229150791d8f8d13961979/update/sys_documentation_x_snc_pointsthing_api_point_number_en.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><record_update> | ||
<sys_documentation element="number" label="Number" language="en" table="x_snc_pointsthing_api_point"> | ||
<sys_documentation action="INSERT_OR_UPDATE"> | ||
<element>number</element> | ||
<help/> | ||
<hint/> | ||
<label>Number</label> | ||
<language>en</language> | ||
<name>x_snc_pointsthing_api_point</name> | ||
<plural>Numbers</plural> | ||
<sys_class_name>sys_documentation</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2024-10-01 17:31:13</sys_created_on> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_name>Number</sys_name> | ||
<sys_package display_value="Points Thing" source="x_snc_pointsthing">9c7718cddb229150791d8f8d13961979</sys_package> | ||
<sys_policy/> | ||
<sys_scope display_value="Points Thing">9c7718cddb229150791d8f8d13961979</sys_scope> | ||
<sys_update_name>sys_documentation_x_snc_pointsthing_api_point_number_en</sys_update_name> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2024-10-01 17:31:13</sys_updated_on> | ||
<url/> | ||
<url_target/> | ||
</sys_documentation> | ||
</sys_documentation> | ||
</record_update> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
9c7718cddb229150791d8f8d13961979/update/sys_number_3ac05ae08305121059f46b70deaad3bc.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_number"> | ||
<sys_number action="INSERT_OR_UPDATE"> | ||
<category display_value="" name="x_snc_pointsthing_api_point">x_snc_pointsthing_api_point</category> | ||
<maximum_digits>7</maximum_digits> | ||
<number>1000</number> | ||
<prefix>API</prefix> | ||
<sys_class_name>sys_number</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2024-10-01 17:31:12</sys_created_on> | ||
<sys_id>3ac05ae08305121059f46b70deaad3bc</sys_id> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_name>API</sys_name> | ||
<sys_package display_value="Points Thing" source="x_snc_pointsthing">9c7718cddb229150791d8f8d13961979</sys_package> | ||
<sys_policy/> | ||
<sys_scope display_value="Points Thing">9c7718cddb229150791d8f8d13961979</sys_scope> | ||
<sys_update_name>sys_number_3ac05ae08305121059f46b70deaad3bc</sys_update_name> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2024-10-01 17:31:12</sys_updated_on> | ||
</sys_number> | ||
</record_update> |
42 changes: 42 additions & 0 deletions
42
9c7718cddb229150791d8f8d13961979/update/sys_ui_policy_47549e2c8305121059f46b70deaad31e.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><record_update sys_domain="global" table="sys_ui_policy"> | ||
<sys_ui_policy action="INSERT_OR_UPDATE"> | ||
<active>true</active> | ||
<conditions/> | ||
<description/> | ||
<global>true</global> | ||
<inherit>false</inherit> | ||
<isolate_script>true</isolate_script> | ||
<model_id/> | ||
<model_table/> | ||
<on_load>true</on_load> | ||
<order>100</order> | ||
<reverse_if_false>true</reverse_if_false> | ||
<run_scripts>false</run_scripts> | ||
<script_false><![CDATA[function onCondition() { | ||
}]]></script_false> | ||
<script_true><![CDATA[function onCondition() { | ||
}]]></script_true> | ||
<set_values/> | ||
<short_description>Policy to make few fields mandatory</short_description> | ||
<sys_class_name>sys_ui_policy</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2024-10-01 17:47:22</sys_created_on> | ||
<sys_domain>global</sys_domain> | ||
<sys_domain_path>/</sys_domain_path> | ||
<sys_id>47549e2c8305121059f46b70deaad31e</sys_id> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_name>Policy to make few fields mandatory</sys_name> | ||
<sys_overrides/> | ||
<sys_package display_value="Points Thing" source="x_snc_pointsthing">9c7718cddb229150791d8f8d13961979</sys_package> | ||
<sys_policy/> | ||
<sys_scope display_value="Points Thing">9c7718cddb229150791d8f8d13961979</sys_scope> | ||
<sys_update_name>sys_ui_policy_47549e2c8305121059f46b70deaad31e</sys_update_name> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2024-10-01 17:47:22</sys_updated_on> | ||
<table>x_snc_pointsthing_api_point</table> | ||
<ui_type>0</ui_type> | ||
<view/> | ||
</sys_ui_policy> | ||
</record_update> |
28 changes: 28 additions & 0 deletions
28
...db229150791d8f8d13961979/update/sys_ui_policy_action_16e4daac8305121059f46b70deaad39a.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><record_update table="sys_ui_policy_action"> | ||
<sys_ui_policy_action action="INSERT_OR_UPDATE"> | ||
<cleared>false</cleared> | ||
<disabled>ignore</disabled> | ||
<field>giver</field> | ||
<field_message/> | ||
<field_message_type>none</field_message_type> | ||
<mandatory>true</mandatory> | ||
<sys_class_name>sys_ui_policy_action</sys_class_name> | ||
<sys_created_by>admin</sys_created_by> | ||
<sys_created_on>2024-10-01 17:49:20</sys_created_on> | ||
<sys_id>16e4daac8305121059f46b70deaad39a</sys_id> | ||
<sys_mod_count>0</sys_mod_count> | ||
<sys_name>giver</sys_name> | ||
<sys_package display_value="Points Thing" source="x_snc_pointsthing">9c7718cddb229150791d8f8d13961979</sys_package> | ||
<sys_policy/> | ||
<sys_scope display_value="Points Thing">9c7718cddb229150791d8f8d13961979</sys_scope> | ||
<sys_update_name>sys_ui_policy_action_16e4daac8305121059f46b70deaad39a</sys_update_name> | ||
<sys_updated_by>admin</sys_updated_by> | ||
<sys_updated_on>2024-10-01 17:49:20</sys_updated_on> | ||
<table>x_snc_pointsthing_api_point</table> | ||
<ui_policy display_value="Policy to make few fields mandatory">47549e2c8305121059f46b70deaad31e</ui_policy> | ||
<value/> | ||
<value_action>ignore</value_action> | ||
<visible>ignore</visible> | ||
</sys_ui_policy_action> | ||
<sys_translated_text action="delete_multiple" query="documentkey=16e4daac8305121059f46b70deaad39a"/> | ||
</record_update> |
Oops, something went wrong.