Tech Tip: How to refresh record when data is updated in another process
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: October 1, 2024
Suppose a record from [Table_1] has been loaded in two different processes. Originally, its value for [Table_1]Field_2 is “abc”. Then, the Field_2 value for that record is updated (via ORDA, SQL, etc.) in one process to “xyz” (assuming the record is not locked). In the other process, the record’s value for Field_2 would still read “abc”. To refresh it, use LOAD RECORD([Table_1]) to reload the record. Then, Field_2 would be updated with the new value of “xyz” from the first process. Note that when using ORDA, an entity can be refreshed by using entity.reload().