我可以使用sharepoint列表作为GetOrgChart的数据源吗?我想在sharepoint中构建和维护数据,然后将这些js放入sharepoint以创建一个aspx页面。
答案 0 :(得分:1)
Yes you could,You would need to return all the list data in JSON using the SharePoint REST API or an Ajax request and the relevant Headers in the request.
dataType: "json",
you would then have to make sure the JSON structure matches that of the Orgchart examples using the developer tools in the browser or fiddler.
When you create your list use the same columns names of that getorgchart supports.