Code examples
Now that you have information on the different root objects you can use in the JavaScript controller, let's take a look at some code examples to get a better understanding of how you can put the root objects in action to achieve the required functionality. We will go through some code examples for some of the generic functionalities that every developer will use at some point in time. We will use some of the root objects we have gone through previously.
Creating a folder
Consider a scenario where you have a custom frontend application and Alfresco as the backend repository. Now, you want to have the functionality for the users to create a folder in Alfresco under the company home from the custom frontend. Once the folder is created, ...
Get Learning Alfresco Web Scripts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.