在 Sharepoint 中,我们在文档库的视图中有一个隐藏列(内容类型列设置的图像)。当用户使用 Harmon.ie 连接到该文档库时,它会在查看/编辑文档/消息的属性时显示隐藏列。当我转到 SharePoint 中的该文档库时,该列已正确隐藏。此行为已使用 Enterprise Edition 版本 5.1.0.8306 和版本 5.7.1.1167 进行了测试。
任何帮助表示赞赏。
在 Sharepoint 中,我们在文档库的视图中有一个隐藏列(内容类型列设置的图像)。当用户使用 Harmon.ie 连接到该文档库时,它会在查看/编辑文档/消息的属性时显示隐藏列。当我转到 SharePoint 中的该文档库时,该列已正确隐藏。此行为已使用 Enterprise Edition 版本 5.1.0.8306 和版本 5.7.1.1167 进行了测试。
任何帮助表示赞赏。
我建议您在 PowerShell 脚本的帮助下隐藏该列。下面是此类脚本的示例(在 SharePoint 服务器端运行)
#Get the web and site column objects
$web = Get-SPWeb http://portal
$column = $web.Fields["Test Column"]
#Change the ShowInEditForm and other properties and update objects
$column.ShowInEditForm = $false
$column.ShowInNewForm = $false
$column.ShowInDisplayForm = $true
£column.ShowInViewForms = $true
$column.Update()
$web.Update()
$web.Dispose()
我建议你下载并安装像 Fiddler 这样的 http 嗅探器。事实上,在我这一边,一个隐藏的专栏受到了harmon.ie 和SharePoint 在线的赞誉。作为客户端应用程序,harmon.ie 调用有效和标准的 Web 服务来连接 SharePoint。使用 Fiddler 确保在 SharePoint 架构中返回的列确实被标记为确实(请参阅我下面对“帐户名称”列的回答)
我还建议您从harmon.ie 站点下载并安装最新版本6.0。
POST https://ravenwooddemo.sharepoint.com/sandbox/_vti_bin/lists.asmx HTTP/1.1
User-Agent: harmon.ie 6.0.0.41373
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetListContentType"
No hidden
<Field Type="Text" DisplayName="Account Name" Required="FALSE" EnforceUniqueValues="FALSE" Indexed="FALSE" MaxLength="255" Group="harmonie custom columns" ID="{ae591ade-2902-44ea-9bbf-80902d74f6d6}" SourceID="{79bb1ae3-c801-4c46-93fc-7a9cb4ef5dda}" StaticName="Account_x0020_Name" Name="Account_x0020_Name" Version="5" Customization="" ColName="nvarchar14" RowOrdinal="0" Hidden="FALSE" ReadOnly="FALSE" PITarget="" PrimaryPITarget="" PIAttribute="" PrimaryPIAttribute="" Aggregation="" Node=""><Default>CocaCola</Default></Field>
Hidden
<Field Type="Text" DisplayName="Account Name" Required="FALSE" EnforceUniqueValues="FALSE" Indexed="FALSE" MaxLength="255" Group="harmonie custom columns" ID="{ae591ade-2902-44ea-9bbf-80902d74f6d6}" SourceID="{79bb1ae3-c801-4c46-93fc-7a9cb4ef5dda}" StaticName="Account_x0020_Name" Name="Account_x0020_Name" Version="5" Customization="" ColName="nvarchar14" RowOrdinal="0" Hidden="TRUE" ReadOnly="FALSE" PITarget="" PrimaryPITarget="" PIAttribute="" PrimaryPIAttribute="" Aggregation="" Node=""><Default>CocaCola</Default></Field>here