Creating folders and moving files in javascript
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2012 08:04 AM
http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook
how to create folders and move files using javascript?
space.createFolder("Backup")
does not work in Share.how to create folders and move files using javascript?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2012 09:09 AM
Hello,
when you write "does not work in Share", do you mean a javaScript web script controller you wrote in Share or the JavaScript console available as an addon for Share?
Please note that "space" is a special root object that is only available to scripts executed in the Repository tier and within a content structure context, e.g. a script triggered by a rule, or an action. This object is not available in any web script controller and - although I am only close to a 100 % certain - on-demand scripts executed via the console.
To create folders and move files using JavaScript, you need a script triggered by a rule or action within a specific content context… Please have a look at the wiki section about root objects in JavaScript.
Regards
Axel
when you write "does not work in Share", do you mean a javaScript web script controller you wrote in Share or the JavaScript console available as an addon for Share?
Please note that "space" is a special root object that is only available to scripts executed in the Repository tier and within a content structure context, e.g. a script triggered by a rule, or an action. This object is not available in any web script controller and - although I am only close to a 100 % certain - on-demand scripts executed via the console.
To create folders and move files using JavaScript, you need a script triggered by a rule or action within a specific content context… Please have a look at the wiki section about root objects in JavaScript.
Regards
Axel
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2012 06:58 AM
Hello
try to write a script with these features http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Root_Scope_Objects
and make sure it does not work in Alfresco Share
try to write a script with these features http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Root_Scope_Objects
and make sure it does not work in Alfresco Share
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2012 11:35 AM
Hello,
of course - these elements are mostly Repository specific. I think it even says that in the wiki somewhere.
Regards
Axel
of course - these elements are mostly Repository specific. I think it even says that in the wiki somewhere.
Regards
Axel
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2012 01:49 AM
1. Write web script that works in Alfresco.
2. Call this script from Share using /share/proxy/[path to script]
3. PROFIT.
2. Call this script from Share using /share/proxy/[path to script]
3. PROFIT.
