trying to fetch number of users available in javascript.

cancel
Showing results for 
Search instead for 
Did you mean: 
monicakumari
Established Member

trying to fetch number of users available in javascript.

Jump to solution

I want to override people.post.json.js file to return true or false in order to compare number of users exists and number of users required(set a limit to add users, fetch the value for required user's count from alfresco-global-properties).

I am not sure how to :--

1 - get number of users exists in alfresco in javascript.

2 - fetch value from alfresco-global-properties in javascript.

thanks in advance.

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: trying to fetch number of users available in javascript.

Jump to solution

Probably best approach is to develop a ScriptNode object in Java (https://docs.alfresco.com/5.1/references/dev-extension-points-javascript-root-objects.html). So you can access easily to alfresco-global.properties and PersonService.countPeople() method.

Hyland Developer Evangelist

View solution in original post

1 Reply
angelborroy
Alfresco Employee

Re: trying to fetch number of users available in javascript.

Jump to solution

Probably best approach is to develop a ScriptNode object in Java (https://docs.alfresco.com/5.1/references/dev-extension-points-javascript-root-objects.html). So you can access easily to alfresco-global.properties and PersonService.countPeople() method.

Hyland Developer Evangelist