在Alfresco YUI数据表

时间:2016-03-27 12:31:55

标签: json datatable yui alfresco-share alfresco-webscripts

我正在使用alfresco 5.0.d版本需要在YUI数据表中填充自定义模型属性,作为响应我得到如下的JSON。

{
    "agency" : [
    {
        "agencyname": "1212",
        "agencycode": "1212",
        "createDate": "23/03/2016"
    }]
}

custom-users-min.js文件:生成请求并填充结果列表。

config : {
    responseType : YAHOO.util.DataSource.TYPE_JSON,
    responseSchema : {
        resultList:"agency"
    }
    }
}

customagency.get.json.ftl文件:

<#import "customagency.lib.ftl" as customagencyLib/>
<@customagencyLib.agencyJSON agency=agency/>

我收到消息为在露天YUI数据表中加载项目时出错。请帮我解决这个问题。

1 个答案:

答案 0 :(得分:0)

在填充YUI datatable.Resolved

中的数据之前应用parseJson之后