是否可以创建 SharePoint 沙盒字段类型?
我想为 SharePoint Online 创建自定义字段类型。因此,据我所知,它一定是沙箱解决方案。有可能创建这个吗?或者允许我在列表上的“单个项目级别”上工作(不是以编辑形式,而是在列表上)。也许项目菜单中的某些选项或某物?
I want to create custom field type for SharePoint Online. Therefore, AFAIK, it must be sandbox solution. Is there any possibility to create this? Or something that allows me to work on "single item level" on the list (not in edit form but on the list). Maybe some option in item menu or sth?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须记住,SharePoint 沙盒模型不提供自定义 FieldType。
MSDN (http://goo.gl/uXGLo) 上有关于沙盒 SharePoint 解决方案的非常好的介绍。
SPI(例如
可以使用 CAML (SharePoint XML-DSL) 或自定义 .NET 代码轻松创建
you have to remember that SharePoint Sandbox Model doesn't offer custom FieldTypes.
There is a really good introduction for Sandboxed SharePoint Solutions on MSDN (http://goo.gl/uXGLo).
SPIs like
could easily be created by using CAML (SharePoint XML-DSL) or by custom .NET Code
只能使用使用内置 SharePoint Foundation 字段类型或之前安装在场解决方案中的自定义字段类型的字段。自定义字段类型无法部署在沙盒解决方案中。
Only fields that use a built-in SharePoint Foundation field type, or a custom field type that is previously installed in a farm solution, are possible. A custom field type cannot be deployed in a sandboxed solution.
是的。
有关 XML 支持,请参阅沙盒解决方案注意事项:
有关 API 支持,请参阅 SPFieldCollection.Add:
可在SharePoint 在某些情况下,可以将场解决方案部署到 SharePoint Online。但它是如此痛苦,除非绝对必要,否则应该避免它。
Yes.
For XML support, see Sandboxed Solution Considerations:
For API support, see SPFieldCollection.Add:
P.S. It is possible to deploy farm solutions to SharePoint Online in some circumstances. But it is so painful that it should be avoided unless absolutely necessary.