gpt4 book ai didi

sharepoint - 确定 SharePoint 2013 列表中列的字段 ID

转载 作者:行者123 更新时间:2023-12-05 01:02:35 24 4
gpt4 key购买 nike

我正在尝试使用 SPServices UpdateList 操作,并且我需要我想要从默认只读设置更改的列的字段 ID。如何确定 Field 标签设置?

//Make the author field editable
var author = "<Fields><Method ID='1'><Field /*What stuff goes here?*/ ReadOnly='FALSE' /></Method></Fields>";
$().SPServices({
operation: "UpdateList",
listName: "Requests",
listProperties:"",
updateFields: author,
newFields: "",
deleteFields: "",
listVersion: "",
async: false,
completefunc: function (xData, Status){
}
});

最佳答案

我通过这样做找到了在字段标签中放入的内容:

  1. 获取 GUID of the list
  2. 导航至此自定义网址:http://[yoursharepointsite]/_vti_bin/owssvr.dll?Cmd=ExportList&List=[yourGUID]
  3. 使用 control-F 搜索您的列名,您将获得包含所有默认参数的字段标记!

所以对于上面的问题,标签是:

<Field ID="{1lc5j379-ec7e-42a8-901d-j85a3881c0b8}" ColName="tp_Author" RowOrdinal="0" ReadOnly="FALSE" Type="User" List="UserInfo" Name="Author" DisplayName="Created By" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Author" FromBaseType="TRUE" Version="7" />

关于sharepoint - 确定 SharePoint 2013 列表中列的字段 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32749507/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com