Update Due to Change in Database Schema to GUIDsUpdate Due to Change in Database Schema to GUIDs\Data ChecksData Checks\Checking for new record

Checking for new record

Previously, new records contained a NULL value (if nullable), or 0 or -1. So in the code, where a UID value is checked for recordID <= 0, it now needs to check if the field contains the default UID for new records, which is 4CA22A04-0079-4033-84A5-E5968C7F3F17. In addition, you should also check for the default GUID value, to be safe, which is 00000000-0000-0000-0000-000000000000.

For example:

If ( recordID === null || recordID <= 0 )

Changes to:

If ( recordID === null || (recordID).toUpperCase() == '4CA22A04-0079-4033-84A5-E5968C7F3F17' || recordID == '00000000-0000-0000-0000-000000000000' )

Top of Page
Top of Page