Here is a step-by-step list of each part of process:
Code:
The initial creation of a record is unchanged compared to the usual process: 1. Record created with private flag enabled 2. User saves record 3. Back end processing completes 4. Record is stored in the database without changes to the fields Now the assigned user loads the record: 1. Record request sent to the back end 2. Back end retrieves the record from the database 3. Record sent to the front end without changes to the fields At this point, everything is normal. However, another user tries to load the record, which should result in the following: 1. Record request sent to back end 2. Back end retrieves the record from the database 3. ** NEW STEP ** Replace private information with new strings, e.g. change the name field to 'Private' 4. Record sent to the front end
Note: This is exactly the same way in which Outlook handles the situation, which is the desired outcome. You don't always want to hide the whole record from other users. There are many use cases for showing partial records to other users.
Leave a comment: