标签:acl pre group multiple i++ star make tip call
I added a GlideList field called Groups (u_groups) at the template form.
u_groups is not empty
var arr_groups = getMyGroups().toArray();
var str_groups = ‘‘;
for (var i = 0; i < arr_groups.length; i++) {
if (i == 0) {
str_groups += ‘u_groupsLIKE‘ + arr_groups[i];
} else {
str_groups += ‘^ORu_groupsLIKE‘ + arr_groups[i];
}
}
current.addEncodedQuery(‘^NQ‘ + str_groups);
Make template available for multiple groups
标签:acl pre group multiple i++ star make tip call
原文地址:https://blog.51cto.com/13716461/2488379