文件名在 Sharepoint 2007 的文档库中显示为必填字段

发布于 2024-08-09 02:12:14 字数 314 浏览 3 评论 0原文

好吧,所以有一个令人困惑的场景。

在 Sharepoint MOSS 2007 站点上,有人搞乱了文档库的设置。您尝试将多个文档上传到文档库,它使它们保持签出状态。以前没有发生过这种情况。库设置(版本控制设置设置为“是”以在编辑前进行检查)。我已经设置了一个测试站点,启用此功能后,它在上传多个文档时不会保持选中状态。此外,该文档库未启用内容类型。

上传文档时,我已将其范围缩小到所需的字段关联,一次一个文档。它将文件名视为必填字段。不知道这如何成为必填字段。我假设文件名始终是必需的。当我进入“库设置”时,我无法看到“文件名”列来编辑它。

我会接受对此的任何建议。

Ok, so got a stumped scenario.

On a Sharepoint MOSS 2007 site, somebody messed around with the settings of a Document Library. You try and upload multiple documents to the document library and it keeps them as checked out. This was not occurring before. The library settings (versioning settings are set to Yes to check out before editing). I have setup a test site and when enabling this, it does not keep it checked out when uploading multiple docs. Also, content types are not enabled for this Document Library.

I've narrowed it down to a required field association when uploading the document, one document at a time. It sees the filename as a required field. Not sure how this became a required field. I would assume a filename is always required. When I go to the Library Settings, I am unable to see the "file name" collumn to edit it.

I'll take any suggestions on this one.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我一向站在原地 2024-08-16 02:12:14

文件名不是实际 SPLIstItem 的实际部分。 SPListItem 基本上使用附加的 SPFile(可通过 SPListItem.File 访问)来“生成”名称。您在页面的 ALlItems.aspx 中看到的名称列是计算列;在 Stramit CAML 查看器中打开列表,查看 CAML 字段是如何构建的。

您能否检查一下这是否确实是所需的名称,或者是否是搞乱列表的人重命名了“标题”列并将其设为必填项。标题字段通常根据 (Word) 文档中指定的文档标题填写,但并不总是填写。

doclib 中的“真实”名称列不可编辑,因为它不是列表的实际部分,它属于 ListItem 的 File 对象。

A File name is not a actual part of the actual SPLIstItem. The SPListItem basically uses the attached SPFile (accessible through SPListItem.File) to "generate" the name. The name column you see in the ALlItems.aspx of a page is a calculated column; open the list in Stramit CAML Viewer to see how the field CAML is built up.

Could you check if it is actually the name that is required or if the person who messed around with the list renamed the "Title" column and made it mandatory. The Title field is usually filled in based on the document title specified in the (Word) document, which is not always filled in.

The "real" name column in a doclib is not editable because it is not an actual part of the list, it belongs to a ListItem's File object.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文