This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 2, 2016, 7:53 AM
11 Posts

@UserRoles in DB Replication Selection Formula

  • Category: Domino Server
  • Platform: Windows
  • Release: 9.0
  • Role:
  • Tags:
  • Replies: 5

Hi

I am trying to use @UserRoles in DB Replication Formula (Documents by Selection Formula) using the following formula:

SELECT @IsNull(@Keywords(FormAuthors;@UserRoles;"")) | @AllDescendants

Does it work? Does above formula work to replicate only documents that user has roles in them and All Descendants of the document

May 2, 2016, 2:19 PM
202 Posts
Please don't post your question across multiple forums, here is my answer in the other for...
May 2, 2016, 2:23 PM
323 Posts
Well, I started with the easy thing to check.

The Help database reports that @UserRoles isn't supported in a SELECT formula.

Now, that's not complete obliteration of functionality, but it should be taken to heart that there are subtleties that are likely to interfere.

May 3, 2016, 6:19 AM
11 Posts
@UserRoles in DB Replication Selection Formula

Thank you for the response. Since @UserRoles is not supported in DB replication selection formula how can I force each user to replicate only the documents that he has Author or Reader authority on them.

May 3, 2016, 2:00 PM
202 Posts
So...
If the document has a reader field, it won't replicate to the local replica unless the user ID replicating is in that reader field.

For getting a  users docs during selective replication, something like
SELECT @Author = @username | @AllChildren
May 4, 2016, 6:53 AM
11 Posts
@UserRoles in DB Replication Selection Formula

My application depends on the Roles not the usaer names. So How can I replicate based on the roles


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal