I recently worked on a customer issue where documents marked private in a Discussion database would disappear from other replicas. Why? Because only the current user is added to the readers field, causing other servers to delete the document during replication. The workaround is quite simple. Change the Mark Private button's code to this:
FIELD readers:=@Trim(@Unique(From : @UserName)) : "LocalDomainServers";
@PostedCommand([RefreshHideFormulas]);@Command([ViewRefreshFields])
You can substitute any other server group or list of individual servers if you don't want to use LocalDomainServers. Now documents marked private on one replica will not be deleted from other replicas. SPR NMDL7KXQAN was created to look at changing the default behavior in a future release.
Comments (0)