cancel
Showing results for 
Search instead for 
Did you mean: 

mltext javascript web script

xsp
Champ in-the-making
Champ in-the-making
Hi,

Is there any way I can get (access, read, write) the mltext properties in javascript webscripts?

Thanks
Xavi
3 REPLIES 3

jpfi
Champ in-the-making
Champ in-the-making
Hi,
afaik: no.
But you can also directly access the relevant Java-Service via JS. Some examples of using Alfresco's Java API via JS are shown in my blog, e.g. http://blog.alfrescian.com/?p=202
Cheers, Jan

mitpatoliya
Star Collaborator
Star Collaborator
what happens if you use
var value[]=document.properties["yourmltext property name"] ;

xsp
Champ in-the-making
Champ in-the-making
I tried it and generates a javascript error.


Failed to run Actions due to error: 01180217 Failed to execute script 'workspace://SpacesStore/aa950669-0e03-4cf3-b588-8b846e5c861e': missing ; before statement (workspace://SpacesStore/aa950669-0e03-4cf3-b588-8b846e5c861e#16)


it works fine if I set the variable to a non array. i.e.


var value=document.properties["yourmltext property name"]; 

….but then I do only get the English property value.