Tech Tip: Turning Objects into Shared Objects in v18R3
PRODUCT: 4D | VERSION: 18 R | PLATFORM: Mac & Win
Published On: August 10, 2020
In v18R3, it is possible to transform regular (non-shared) objects into shared objects. This is done by using the OB Copy command. By default, the command returns a regular (non-shared) object, even when copying a shared object. OB Copy has gained 2 new parameters, option and groupWith. Now, the constant ck shared can be passed into the option parameter to return a shared version of the object.
When ck shared is passed, the object and all of its sub-objects/collections become a shared group.
Note: Do not pass Storage in the groupWith parameter. Storage is a special kind of shared object that does not belong to a shared group.