As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<html> <head> </head> <body> Test dashlet <div id="treeDiv1">gee</div> <script type="text/javascript">//<![CDATA[ var tempobject = [ { type: "text", label: "node1" } ]; //instantiate the TreeView control: var tree = new YAHOO.widget.TreeView("treeDiv1", tempobject); //render it tree.draw(); //]]></script> </body> </html>
H is null anonymous() treeview-min.js (line 8) treenav.js() treenav.js (line 37) [Break on this error] }else{H.expand();H=(H.children.length||n…&&!C.isFunction(this[E])){this[E]=G[E];\n treeview-min.js (line 8)
Alfresco.util.ComponentManager.register(this); Alfresco.util.YUILoaderHelper.require(["button", "menu", "container"], this.onComponentsLoaded, this);
var tempobject = [ { type: "text", label: "node1" } ]; //instantiate the TreeView control: var tree = new YAHOO.widget.TreeView("treeDiv1", tempobject);
<html> <head> </head> <body> Test dashlet <div id="treeDiv1">tree</div> <script type="text/javascript">//<![CDATA[ //render it tree.draw(); //]]></script> </body> </html>
<script type="text/javascript">//<![CDATA[ new Alfresco.DocumentList("${args.htmlid}").setOptions( { siteId: "${page.url.templateArgs.site!""}", containerId: "${template.properties.container!"documentLibrary"}", usePagination: ${(args.pagination!false)?string}, showFolders: ${(preferences.showFolders!false)?string}, simpleView: ${(preferences.simpleView!false)?string}, highlightFile: "${page.url.args["file"]!""}", vtiServer: ${vtiServer} }).setMessages( ${messages} ); //]]></script>
var shareSites = [{ "sites": <#list sites as site>"${site.name}" <#if site_has_next>,</#if></#list> } ]; var tempobject = [ { type: "text", label: "node1" } ]; //instantiate the TreeView control: var tree = new YAHOO.widget.TreeView("treeDiv1", tempobject, shareSites);
_loadData: function() { Alfresco.util.Ajax.request( { url: Alfresco.constants.PROXY_URI + "calendar/eventList", dataObj: { "site": this.siteId }, successCallback: { fn: this.onDataLoad, scope: this }, failureMessage: Alfresco.util.message("load.fail", "Alfresco.CalendarView") }); },
{ "dokumenti" : [ <#list companyhome.childByNamePath["Sites/"+args.company+"/documentLibrary"].children as child> { "name" : "${jsonUtils.encodeJSONString(child.properties.name)}" , "nodeRef" : <#if child.isContainer>"FOLDER"<#else>"${jsonUtils.encodeJSONString(child.nodeRef)}"</#if>, "clientUser" : "${child.properties["custom:prop1]}", "clientPay" : ${child.properties["custom:prop2"]}" }<#if child_has_next>, </#if> </#list> ] }
<webscript> <shortname>Document Property</shortname> <description>Get doc properties for Share Upload dashlet</description> <default>json</default> <url>/sample/docprop.json</url> <authentication>user</authentication> <transaction>required</transaction> </webscript>
Caused by: freemarker.core.InvalidReferenceException: Expression companyhome.childByNamePath["Sites/"+args.tvrtka+"/documentLibrary"] is undefined on line 3, column 8 in org/alfresco/sample/docprop.get.json.ftl.
var connector = remote.connect("alfresco"); result = connector.get("/slingshot/doclib/container/" + siteId + "/" + containerId + "?type=" + toRepoType(appType)); if (result.status == 200) { var data = eval('(' + result + ')'); containerType = data.container.type; }
var connector = remote.connect("alfresco"); result = connector.get("/sample/docprop.json?tvrtka=" + model.site ); if (result.status == 200) { var data = eval('(' + result + ')'); model.docprop = data["dokumenti"]; }
http://localhost:8080/alfresco/service/sample/docprop.json?tvrtka=testtvrtka
Caused by: freemarker.core.InvalidReferenceException: Expression companyhome.childByNamePath["Sites/"+args.tvrtka+"/documentLibrary"] is undefined on line 3, column 8 in org/alfresco/sample/docprop.get.json.ftl.
var tempobject = [ { type: "text", label: "node1" } ];x = json.stringify (tempobject);model.x = x;In the template:jsonObject= JSON.parse(${x});
model.x = jsonUtils.toJSONString(tempobject);