10-21-2014 08:51 AM
<webscript>
<shortname>Appels et Courriers</shortname>
<description>Liste des listes d'appels et de courriers</description>
<family>user-dashlet</family>
<url>/components/dashlets/datalists-list</url>
</webscript>
<@markup id="js">
<#– Your JavaScript file. You actually only need the my-dashlet-min.js file (unless in development mode), but we usually keep the original source in my-dashlet.js there so we can change it later.–>
<@script type="text/javascript" src="${url.context}/res/components/dashlets/datalists-list.js" group="dashlets"/>
</@>
<@markup id="html">
<@uniqueIdDiv>
<div class="dashlet">
<div class="title">Lites d'appels et de courriers</div>
<div class="body">
${msg[0]} - ${msg[1]} - ${msg[2]} - ${msg[3]}<br/>
<#if listes?exists>
<#if listes?is_boolean>
Aucune liste d'appels ou de courrier
<#else>
<#list listes as liste>
<a href="${url.serviceContext}/repo/node/${liste.id}">${liste.title}</a><br/>
</#list>
</#if>
<#else>
liste non défini
</#if>
</div>
</div>
</@>
</@>
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">
var listes = false;
var msg = [];
var dossier = sites.childByNamePath("Sites").childByNamePath("administratif");
if(dossier && dossier.childByNamePath("dataLists")){
dossier = dossier.childByNamePath("dataLists");
listes = dossier.children;
msg[0] = "dossier Site et administratif trouvé";
}else msg[0] = "dossier sites et administratif non trouvé";
model.listes = listes;
model.msg = msg;
10-22-2014 04:45 PM
10-27-2014 05:33 PM
10-28-2014 02:52 AM
var json = remote.call("/service/cmis/p/Sites/gestion/dataLists/children");
10-28-2014 08:19 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.