Questions tagged [web-scripting]

97 questions
0
votes
1 answer

how to add content in Guest home using Webscript in alfresco

As per documentation, there are APIs to access Companyhome, userHome objects etc. but there is none for guesthome object access. Please share if there is an alternate way to access guesthome. Thanks in advance.
0
votes
1 answer

Cannot find template in Java web script in alfresco

I have followed this tutorial to create a send email custom action using Java backed Webscript: http://ecmstuff.blogspot.com/2012/04/adding-document-library-actions-in.html?showComment=1403279845779#c303784066266925848 As has been mentioned above,…
jcoder12
  • 167
  • 1
  • 4
  • 15
0
votes
1 answer

How to perform "Unless all criteria are met" Alfresco Rule in JAVA

I want to create an Alfresco Webservice in Java that create a Folder with a specific rule. Until now the webservice creates the folder and the rule. The problem is that I want to add an actionCondition to my rule that do the same job as "Unless all…
deltascience
  • 3,321
  • 5
  • 42
  • 71
0
votes
1 answer

java backed webscript alfresco

error: "package org.springframework.extensions.webscripts does not exist" for all the below imports code: import org.springframework.extensions.webscripts.AbstractWebScript; import org.springframework.extensions.webscripts.WebScriptException; import…
bluesony
  • 459
  • 1
  • 5
  • 28
0
votes
2 answers

Creating a customized page for displaying only folder structure of Alfresco Share

i have a requirement where i have an integration of my java application with alfresco share such that when a user clicks on a button , i need to give the user a custom page where he can select the folder structure of alfresco , how do i create a…
0
votes
1 answer

Calling an external rest service from Alfresco Share page

I have created a rest service in a java application . I need to call this rest service on the click of a button in Alfresco Share page . How do i approacj it . Can i directly call the service with the url ?
0
votes
1 answer

How to make iMacro find only the exact string in a TXT attribute

I am putting together an iMacro for firefox, and I am having trouble making iMacro find only the exact strong in the TXT attribute. In this iMacro, I am looking for a with the string follow. Here is the piece of the script: TAG POS=1…
novicePrgrmr
  • 18,647
  • 31
  • 81
  • 103
0
votes
1 answer

how to get user spaces using Webscript in alfresco

i'm working on a small project to get the current user spaces in alfresco. i searched in the few days buts no result. can any one help me to get the current user spaces using webscript in alfresco. thanks you
Smartoop
  • 715
  • 6
  • 13
0
votes
1 answer

Alfresco- Pass variable values from js controller to freemarker

can anybody tell me what am I doing wrong? I want to retrieve all my alfresco sites with this code (this should work): model.sites = siteService.listSites(null, null, 0); // return type= List And now i want to retrieve this list model.sites…
RobinHo
  • 565
  • 1
  • 9
  • 24
0
votes
1 answer

automatically assign my uploaded document to a content type

I am searching the easiest way to get this done in alfresco: When I upload a document in a specific folder.I want it to give automatically a content type. So I create a rule on a folder => In my rule I have to set an action that gives my document a…
RobinHo
  • 565
  • 1
  • 9
  • 24
0
votes
2 answers

Alfresco webscripts File upload directly to alfresco repository

I've been going through CMIS model in general and how to use Alfresco as CMIS repository in Alfresco Wiki and Documentation(I installed 4.2d on Windows). I am confused about many things but here is what I need to know right now: Is there any portlet…
Rajiv
  • 1
0
votes
1 answer

webscript doesn't redirect on error

I have the following webscript ( disable-affiliate.put.js ) var spaceNode = customSpacesService.getAffiliatedSpace(args.id) ; if(spaceNode == null){ status.code = 404; status.message = "Can't find affiliated"; status.redirect =…
alaeddine.nasri
  • 182
  • 1
  • 2
  • 11
0
votes
2 answers

Alfresco webscript text fromat line break

I created an alfresco webscript and output file as xxx.get.text.ftl file. In the output file(xxx.get.text.ftl), I am trying to create text version of newsletter. But I am not able to get text lines with line break. if I put…
smile
  • 498
  • 7
  • 18
0
votes
1 answer

How to write a webscript to returns the ticket for the current user?

I need to implement a web script that generates a returns the ticket for the current user. This web script is addressed by the URI I use to setup a URLConncetion. The ticket should be contained in the response body, which I need to evaluate in my…
Boat
  • 515
  • 2
  • 8
  • 28
0
votes
1 answer

Print the image by URL from browser's scripts

I can use any browser on windows XP or 7. I can change any security options for my issue to be solved. I need to print the contents of remote image (by its uri) from javascript or vbscript. I have a printer installed and I have its name. Tha main…
AgentFire
  • 8,944
  • 8
  • 43
  • 90