sharepoint 中的自定义附件字段
我需要更改共享点附件的默认行为,以便当用户单击“附加文件”时,“partAttachment”范围可见,要求用户上传文件。
我想在附件范围中添加另一个“标题”字段,即正在上传的文件的标题。通过这样做,我希望 sharepoint 存储 filepath ,就像它已经做的那样,以及文件的标题。最后,我希望这个标题存储在 sharepoint 存储文件路径的位置,并且我应该能够在需要时检索路径和标题。你能建议一下吗?
我已经尝试使用上传控件创建一个自定义字段,该控件从用户那里获取标题和文件,但无法理解在哪里上传文件,就像默认上传系统通常所做的那样。
i need to alter the default behaviour of sharepoint attachment in such a way that when user click 'attach file' the "partAttachment" span get visible which asks user to upload a file.
i want to add another filed of "Title" i.e. the title of the file being uploaded, in the partAttachment span. by doing this i want that sharepoint stores filepath , as it alread does, and title of the file as well. and in the end i want this titile to be stored where sharepoint stores the file path and i should be able to retrive the paths and title when needed. can y ou plz suggest smething.
i already tried to make a custom field using upload control that take title and file from the user but cant understand where to upload the file as it normaly does with default upload system.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你走在正确的道路上。尝试使用列表项的附件集合。
然后
使用您自己的字段渲染控件以您想要的方式显示附加文件。
为了检索项目的附件,您应该创建一个指向 {ListUrl}/Attachments/{ItemId}/{Filename} 的链接,
例如 http://.../Lists/Tasks/Attachments/1/Devices%202.png
You are on a right trail. Try using the Attachments collection of list item.
smth like
then use your own field rendering control to display the attached files in the way you want.
In order to retrieve an attachment for an item you should create a link that points to {ListUrl}/Attachments/{ItemId}/{Filename}
for example http://.../Lists/Tasks/Attachments/1/Devices%202.png