Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Alfresco Web Scripts
  • Toc
  • feedback
Learning Alfresco Web Scripts

Learning Alfresco Web Scripts

By : Ramesh Chauhan
4.5 (4)
close
Learning Alfresco Web Scripts

Learning Alfresco Web Scripts

4.5 (4)
By: Ramesh Chauhan

Overview of this book

If you are an Alfresco developer who has no experience with web scripts and you want to start developing Alfresco web scripts, then this book is definitely for you.
Table of Contents (12 chapters)
close
11
Index

Creating your own root object


We saw some of the generic examples of how to use root objects and JavaScript APIs in the JavaScript controller. You should be able to now explore the other root objects and related JavaScript APIs and find out which ones you can use to develop the web script as per your business requirement. Now, let's see something very interesting.

Consider a scenario wherein you want to execute some part of the JavaScript controller as a system user. The first thing that you will do is go through the available JavaScript APIs to find out whether there is a suitable API for this functionality is available or not. After doing an analysis, you will find that there isn't such an API available out-of-the-box. However, you found that if the web script had been a Java-backed web script, you could have used the Java API to do this. However, yours is the JavaScript-based web script. Now, what is next? You must be thinking how to perform this in the JavaScript API as well? No worries...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete