var gens = search.luceneSearch("TYPE:\"{http://www.alfresco.org/model/content/1.0}person\"");
for (var i=0; i<gens.length;i++) {
var dashboardId = "user/" + gens[i].properties["cm:userName"] + "/dashboard";
var currentTemplate = sitedata.findTemplate(dashboardId);
var dashlets = [];
dashlets.push({
url: "/components/dashlets/user-calendar",
regionId: "component-1-1"
});
var dataObj = {dashboardPage: dashboardId, templateId: currentTemplate.id, dashlets: dashlets};
Alfresco.util.Ajax.jsonRequest(
{
method: Alfresco.util.Ajax.POST,
url: Alfresco.constants.URL_SERVICECONTEXT + "components/dashboard/customise-dashboard",
dataObj: dataObj,
successCallback:
{
fn: function()
{
},
scope: this
}
});
}
org.alfresco.error.AlfrescoRuntimeException: 02300187 Error during command servlet processing: 02300186 Failed to execute script 'workspace://SpacesStore/ed363437-0486-4f4c-85a9-b0ae7eae0b84': 02300185 ReferenceError: "sitedata" n'est pas défini (workspace://SpacesStore/ed363437-0486-4f4c-85a9-b0ae7eae0b84#5)
caused by:
org.alfresco.scripts.ScriptException: 02300186 Failed to execute script 'workspace://SpacesStore/ed363437-0486-4f4c-85a9-b0ae7eae0b84': 02300185 ReferenceError: "sitedata" n'est pas défini (workspace://SpacesStore/ed363437-0486-4f4c-85a9-b0ae7eae0b84#5)
ReferenceError: "sitedata" n'est pas défini
Je l'ai exécute dans alfresco explorer et J'ai reçu :
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.