cancel
Showing results for 
Search instead for 
Did you mean: 

Is the javascript api for WebScripts and Dashlets different?

chanchaljacob
Champ in-the-making
Champ in-the-making
Hello,

Another newbie question.

Is the javascript api for WebScripts and Dashlets different?

var name = userhome.properties.name works fine in a WebScript, but Dashlet is not able resolve userhome

Any pointers on what I might be missing here would be quite helpful.

Thanks and Regards

Chanchal
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
Of course they are diffrent ,they are totally in different runtime.
WebScripts's runtime container is alfresco ,so it can use alfresco's javascript api;
Dashlet 's runtime is share 's local runtime;
you can  use alfresco javascript api implement a webscript ,and develop a dashlet using that webscript