如何在 SharePoint 中存储这些外部数据?
我正在使用 Visual Studio 2010、SharePoint 2010 以及自定义文档内容类型和表单。并计划还使用 jquery 构建文档添加/编辑/查看表单。
我正在开发一个解决方案,我想要一个文档库,其中上传的每个文档还添加了许多作为元数据添加的外部数据元素。
我试图弄清楚的棘手部分是我希望用户能够指定并添加多个相同的外部数据元素。
我试图弄清楚如何在 SharePoint 内部表示数据。我最初的想法是在用户添加这些外部选择时以编程方式添加隐藏的外部字段。但后来我也考虑简单地将这些外部元素存储为非外部文本字段,但有我自己的代码来执行外部数据查找和验证。
我并不反对重要的自定义编码,因为无论如何我可能都需要做很多事情,因为即使用户界面也将是一个 jquery 选项卡式表单,以启用用户能够关联的所有外部数据每个 SP 文档。
我试图进一步解释我正在尝试做的事情并包含该图像。本质上,我想根据用户的需要向每个文档添加 1+ 个外部数据关系。
它仅使用示例数据。我实际上会有 4-7 个不同的复杂关系,就像这个例子一样。用户可以深入选择 1 个、2 个或全部 3 个下拉列表。
可以将其视为类似于在 Experts-Exchange 上我们可以向问题添加多个区域的方式。
示例说明如下:http://flic.kr/p/aFUSJn
I am using Visual Studio 2010, SharePoint 2010 with custom document content types and forms. And plan to also use jquery to build the document add/edit/view forms.
I am developing a solution where I want to have a document library where each document uploaded also has a number of external data elements added as metadata.
The tricky part I'm trying to figure out is I want the user to be able to specify and add a multiple number of those same external data elements.
I'm trying to figure out how I represent the data internally in SharePoint. My initial thought is to programmaticly add hidden external fields as the users adds those external selections. But then I also think of simply storing those external elements as non-external text fields but have my own code which performs the external data lookup and validation.
I'm not adverse to significant custom coding, as I'm probably going to need to do a lot anyway since even the user interface is going to be a jquery tabbed form to enable all the external data the user will be able to associate with each SP document.
I've made an attempt to hopefully further explain what I'm trying to do and included that image. Essentially I'm wanting to add 1+ external data relationships to each document, as desired by the user.
It uses just example data. I'll actually have 4-7 different complex relationships much like the example. And the user is permitted to drilldown and select 1, 2 or all 3 of the dropdowns.
Think of it as similar to how here on Experts-Exchange we can add multiple zones to a question.
An example illustration is here: http://flic.kr/p/aFUSJn
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您能否简单地添加一个多行文本列并让用户用逗号输入元数据,然后使用您的代码来分隔数据并对其执行您想要的操作?
Could you simply add a multi-line text column and have the user input the metadata with comma's, then use your code to seperate the data and do what you want with it?
您说过您并不反对重要的自定义编码:)
一种解决方案是使用 SharePoint 内容类型。技巧在于列表中的所有项目并不需要具有相同的内容类型。
因此,您可以执行以下操作:
然后将所有信息强类型化到 SharePoint 列表中。
我们之前构建了一个系统,可以根据 xsd 文件生成内容类型,效果非常好。
You said you were not adverse to significant custom coding :)
One solution is to use SharePoint content types. The trick is that not all items in a list need to have the same content type.
Therefore, you can do the following:
You then have all your information strongly typed in SharePoint lists.
We have previously built a system where we generate content types based on xsd files, this worked very well.