04-06-2015 02:41 PM
Hello
org.mozilla.javascript.Undefined@6c251a4c
<webscript>
<shortname>Hello User</shortname>
<description>Personalized greeting</description>
<url>/hellouser</url>
<authentication>user</authentication>
<negotiate accept="text/html">html</negotiate>
<negotiate accept="application/json">json</negotiate>
</webscript>
{greeting: "hello", user: "${person.properties.userName}"}
Hello ${person.properties.userName}
<div class="dashlet">
<div class="title">Hello </div>
<div class="body scrollableList">
${hellouser} <#– user’s value will be taken from .js file –>
</div>
</div>
function main()
{
var connector = remote.connect("alfresco");
var data = connector.get("/hellouser.json");
// create json object from data
var result = eval('(' + data + ')');
model.hellouser = result["hellouser"];
}
main();
<webscript>
<shortname>Hello World</shortname>
<description>Hello World Dashlet</description>
<family>dashlet</family>
<url>/components/dashlets/hellouser</url>
</webscript>
04-06-2015 03:54 PM
function main()
{
var connector = remote.connect("alfresco");
var data = connector.get("/hellouser.json");
// create json object from data
var result = eval('(' + data + ')');
model.hellouser = result["user"];
}
main();
04-06-2015 04:04 PM
04-07-2015 11:39 AM
01-07-2016 07:03 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.