问题
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