O'Reilly logo

Learning Alfresco Web Scripts by Ramesh Chauhan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required