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.
Solved! Go 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.
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.