Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the auto number to the API Table and beautified the API Table form using form design #49

Merged
merged 5 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions 9c7718cddb229150791d8f8d13961979/README.md
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
2 changes: 1 addition & 1 deletion 9c7718cddb229150791d8f8d13961979/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4SkNf5XPjK0s_NfOW_aBTzkAf0jCxfWNVVupQk3itYxbYY_g3RSjs5gjzp8Gil5M-erjm-0D-vKGBPJEOaC11sTWAPXBXUK_wdavER5MhpiPq6VwQtVb9ASVjpHru3WCGAdh1pPhrNcuxpgaj7lC7IP4AqyfxQ1r8xq53i6rsTCLRSwR29VR27eCPBYZYnc3UhRmckj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Ac4oZoG5UAl5625OknB64vHlmX_A5gLoIY95UpHGCiW5oOjbug2IIXGLpVIH1xUGN5TZDwSjUlR5LrVCq7go08hS8
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><database>
<element db_object_id="d47a3b43473d35104fb86285d36d4380" label="API Point" max_length="40" name="x_snc_pointsthing_api_point" type="collection">
<element label="Giver" max_length="32" name="giver" reference="x_snc_pointsthing_user" type="reference"/>
<element label="Target" max_length="32" name="target" reference="x_snc_pointsthing_user" type="reference"/>
<element attributes="ignore_filter_on_new=true" default="javascript:global.getNextObjNumberPadded();" label="Number" max_length="40" name="number" read_only="true" type="string"/>
<element default="1" label="Points" max_length="40" name="points" type="integer"/>
<element label="Giver" max_length="32" name="giver" reference="x_snc_pointsthing_user" type="reference"/>
<element label="Reason" max_length="40" name="reason" type="string"/>
<element label="Source" max_length="40" name="source" type="string"/>
<element label="Target" max_length="32" name="target" reference="x_snc_pointsthing_user" type="reference"/>
<index name="index">
<element name="giver"/>
</index>
Expand Down
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>
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,27 @@
<create_access>true</create_access>
<create_access_controls>true</create_access_controls>
<delete_access>false</delete_access>
<extension_model/>
<is_extendable>false</is_extendable>
<label>API Point</label>
<live_feed_enabled>false</live_feed_enabled>
<name>x_snc_pointsthing_api_point</name>
<number_ref/>
<number_ref display_value="API">3ac05ae08305121059f46b70deaad3bc</number_ref>
<provider_class/>
<read_access>true</read_access>
<scriptable_table>false</scriptable_table>
<super_class/>
<sys_class_code/>
<sys_class_name>sys_db_object</sys_class_name>
<sys_class_path/>
<sys_created_by>earl.duque</sys_created_by>
<sys_created_on>2022-10-13 03:05:34</sys_created_on>
<sys_id>d4ba90c1db629150791d8f8d139619cb</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_mod_count>1</sys_mod_count>
<sys_name>API Point</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_db_object_d4ba90c1db629150791d8f8d139619cb</sys_update_name>
<sys_updated_by>earl.duque</sys_updated_by>
<sys_updated_on>2022-10-13 03:05:34</sys_updated_on>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-01 17:31:12</sys_updated_on>
<update_access>false</update_access>
<user_role display_value="x_snc_pointsthing.user" name="x_snc_pointsthing.user">d0595841db629150791d8f8d1396198d</user_role>
<ws_access>true</ws_access>
Expand Down
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>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<sys_dictionary action="INSERT_OR_UPDATE" element="user_name" table="x_snc_pointsthing_user">
<active>true</active>
<array>false</array>
<array_denormalized>false</array_denormalized>
<attributes/>
<audit>false</audit>
<calculation><![CDATA[(function calculatedFieldValue(current) {
Expand Down Expand Up @@ -30,6 +29,7 @@
<element>user_name</element>
<element_reference>false</element_reference>
<foreign_database/>
<formula/>
<function_definition/>
<function_field>false</function_field>
<internal_type display_value="String">string</internal_type>
Expand All @@ -38,7 +38,7 @@
<name>x_snc_pointsthing_user</name>
<next_element/>
<primary>false</primary>
<read_only>false</read_only>
<read_only>true</read_only>
<read_roles/>
<reference/>
<reference_cascade_rule/>
Expand All @@ -47,28 +47,26 @@
<reference_qual/>
<reference_qual_condition/>
<reference_type/>
<sizeclass/>
<spell_check>false</spell_check>
<staged>false</staged>
<sys_class_name>sys_dictionary</sys_class_name>
<sys_created_by>earl.duque</sys_created_by>
<sys_created_on>2022-10-13 02:55:44</sys_created_on>
<sys_id>89f85441db629150791d8f8d13961972</sys_id>
<sys_mod_count>2</sys_mod_count>
<sys_name>User name</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_user_user_name</sys_update_name>
<sys_updated_by>earl.duque</sys_updated_by>
<sys_updated_on>2022-10-13 05:25:20</sys_updated_on>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-01 17:46:09</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>
Expand Down
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>
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
<sys_class_name>sys_documentation</sys_class_name>
<sys_created_by>earl.duque</sys_created_by>
<sys_created_on>2022-10-13 02:55:45</sys_created_on>
<sys_id>6c59d841db629150791d8f8d13961998</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_mod_count>2</sys_mod_count>
<sys_name>User name</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_user_user_name_en</sys_update_name>
<sys_updated_by>earl.duque</sys_updated_by>
<sys_updated_on>2022-10-13 02:55:45</sys_updated_on>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-01 17:45:25</sys_updated_on>
<url/>
<url_target/>
</sys_documentation>
Expand Down
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>
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>
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>
Loading
Loading