Adding Groups that contain spaces to field w/ code

Is there any way to use code to add groups to a field when the group names contain spaces. If you type the group name without spaces, Notes complains. If you put strings around it, Notes accepts the entry but seems to treat it as a string and not a group that it should look up. I’ve even tried adding each part of the group name to varibles and then concantenating the thing, but that ends up being a string too.

I have a hidden document with a number on it that I use for autonumbering the documents. Because I created this document, it doesn’t get updated when the users save their documents. (I have my code in the QuerySave event to update the number.) The only solution I can find is to make everyone editors. That really doesn’t cause any problem since the entire document consists of controlled access sections. But it seems like there must be a another way. If you put * in the author field on the number document, would Notes see that as a wild card to accept anyone. Or would it look for a group named *? Thanks.

Subject: Adding Groups that contain spaces to field w/ code

Hiya,

The Authors field on your number document may need */domain for it to work properly. This method has worked well for me in the same situation.

If the groups are roles then you will need “[Group 1]”:“[Group 2]”.

regards,

Jon.

Subject: Adding Groups that contain spaces to field w/ code

Assign a role to the field, not a group. Assign that same role to the Group in the ACL.

Subject: Adding Groups that contain spaces to field w/ code

Thanks for the help!