Is creating SharePoint sandbox field types possible?

送分小仙女□ 提交于 2019-12-25 02:15:31

问题


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?


回答1:


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

  • ContentTypes
  • SiteColumns
  • Lists

could easily be created by using CAML (SharePoint XML-DSL) or by custom .NET Code




回答2:


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.




回答3:


Yes.

For XML support, see Sandboxed Solution Considerations:

Sandboxed solutions support the following capabilities and elements:

...

Content Types/Fields

For API support, see SPFieldCollection.Add:

Available in SharePoint Online

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.



来源:https://stackoverflow.com/questions/7204305/is-creating-sharepoint-sandbox-field-types-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!