cancel
Showing results for 
Search instead for 
Did you mean: 

trying to fetch number of users available in javascript.

monicakumari
Star Contributor
Star Contributor

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 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

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 answer in original post

1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager

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