cancel
Showing results for 
Search instead for 
Did you mean: 

Webscript for Alfresco zimlet

pp20218
Champ in-the-making
Champ in-the-making
Hi All,

I am using the webscript for uploading the document from zimbra to alfresco. The application is working fine with Alfresco 3.2r but not working beyond 3.2r releases. Any help. I am posting the web scripts code.

(1)aboutAlfresco.get.desc.xml

<webscript>
  <shortname>About Alfresco</shortname>
  <description>Provides basic information about installed alfresco instance</description>
  <url format="json" template="/zimbra/about.json"/>
  <url format="html" template="/zimbra/about.html"/>
  <format default="json">extension</format>
  <authentication>user</authentication>
  <transaction>required</transaction>
</webscript>


(2)aboutAlfresco.get.json.ftl

${result}


(3)aboutAlfresco.get.html.ftl

${result}

(4)aboutAlfresco.get.js

<import resource="/Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/json.js">
<import resource="/Company Home/Data Dictionary/Web Scripts Extensions/org/alfresco/util/alfcommon.js">

var result = {};

result.version = server.version;

result.edition = server.edition;

result.userId = person.properties.userName;

result.fullName = person.properties.firstName + person.properties.lastName;

model.result = result.toJSONString();


when I run this web script I am getting all the values as "undefined". 

Pls help. After 3.2r Webscript is moved to Spring Surf does that the problem??

Pls suggest.

Thanx in adv.
6 REPLIES 6

pp20218
Champ in-the-making
Champ in-the-making
Can anyone help me pls? I m completely stuck here.

kevinr
Star Contributor
Star Contributor
I assume your webscript is running in process on the alfresco tier (i.e. not on the web-tier in Share) in which case the move to SpringSurf is not relevant to you. Can you confirm that the webscript is still deployed in Alfresco and not the web-tier?

pp20218
Champ in-the-making
Champ in-the-making
Hi,

Thanks for the reply. I got some sorts of confusion here.

Below is what I have done.
(1)Uploaded the scripts under Company Home—Data Dictionary—Webscript Extensions
(2)After this I refreshed the webscripts using http://localhost:8080/alfresco/service/index

This is what I have done. And I am using Alfresco 3.3. Till 3.2 version it was working fine to me.

Pls help.

Thanks
PP

eliaslopez76
Champ in-the-making
Champ in-the-making
I'm having exact problem please HELP !!!
every field in the dialog shows as UNDEFINED.

pp20218
Champ in-the-making
Champ in-the-making
Any help pls?

louise
Champ in-the-making
Champ in-the-making
Please try my updated/fixed version of Alfresco Zimlet: http://louise.hu/poet/?p=5967