Notifications

500 views

Description

When the same record is open by two different users, and one user updates a checkbox field, the other user sees that as a real-time update. However, when this other user changes the same value and tries to save the record, the value does not get saved as expected.

 

Steps to Reproduce

  1. Open two different web browsers.
  2. With both of them, connect to the same OOB instance (istanbulpatch4).
  3. Login as two different users who belong to the same company.
  4. Open the same record (For example, any problem record).
  5. With user 1, update one field of the record (For example, enable the Knowledge checkbox) and save.
  6. Switch to the other browser.
  7. As user 2, the little blue icon appears next to the modified field and the value of the field is updated (For example, the Knowledge checkbox is enabled).
  8. As user 2, try to update the same field to its previous value (For example, disable the Knowledge checkbox) and save.
  9. The form is refreshed, but the value of the field is not updated (For example, the Knowledge checkbox is still enabled).

Workaround

Possible workarounds on instances that can not be upgraded yet are the following:

 

  1. Disable live form features which includes disabling live form updates.


  2. Create an onChange Client Script that detects if the change is being done via Presence/Live and then set the value of the sys_original to the new value: 

Type: onChange

Table name: table_name

Field name: affected_boolean_field

Script: 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }
 
   //Type appropriate comment here, and begin script below
   if (g_form.isLiveUpdating())
       g_form.getControl('sys_original.table_name.affected_boolean_field').value = newValue;
}
 

Related Problem: PRB924635

Seen In

Helsinki Patch 4
Istanbul Patch 2
Istanbul Patch 4

Fixed In

Jakarta Patch 9
Kingston Patch 6
London

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-06-28 05:25:11
Published:2018-06-28