Hot answers tagged

3

Document library require content types that are inherited from Document Content Type. This is required because it needs a File field to store the file data. In case of Custom List, it is just like an Excel File with columns (Meta data) and don't require a mandatory File object (in case of doc lib) Also I don't think its a good design to have both using the ...


2

Try this SPListCollection lc = oWeb.Lists; lc.Add("SampleList", "", SPListTemplateType.GenericList); SPList l = oWeb.Lists["SampleList"]; l.EnableVersioning = true; l.ContentTypesEnabled = true; l.Update(); l.ContentTypes.Add(oSiteCollection.RootWeb.ContentTypes["SomeCT"]);


2

Edit form is a custom form...which is being customized not to include Description column in Edit form. How about Display form..there do u see any description field? Open the forms in Designer and create a new edit form and set it as default. you will be able to view all fields in edit form.


2

Please check the forms in SharePoint Designer and take a look which one is set to default for the edit form. If you don't have access to SPD please check the URL of the editform. The normal one is /EditForm.aspx The first steps how to customize your forms is shown here: https://afrait.com/blog/custom-new-edit-or-display-form-in-4-steps-en/


2

Just go to your display form, edit the page and add the listview webpart of the other list you want to get data from. Edit the properties of this listview and add a webpart connection that connects the listview with the display form. There you can choose which field connects to what. ...


1

An other option is to use CSR (here is some basic info for setting the JSLink property on a webpart: http://www.learningsharepoint.com/2013/09/16/set-js-link-webpart-property-in-sharepoint-2013/). CSR is the new way for customizing how your fields are rendered. Following code will output the filename including the extentions: ...


1

If you head over to the view/create a new view in the list, there should be a column called Content Type that you can add to your view, filter by or even group by.


1

I dont think there is a universal way. From my experience there is no simple way to enfore this but you might be able to via workflows. You can add required to the columns which will force the user to in certian upload scenarios, mainly when saving direct from the document to a location or when saving after opening from SharePoint.


1

Note that all fields properties that have a return type of boolean, are set binarily (i.e. 1 = true, 0 = false). I would recommend looking at the return types of each of the properties you are trying to set on MSDN, SP Field Properties. It looks to me as though all your Boolean values are being incorrectly set. Set thusly; <Field ...


1

I guess creating documents based on a template is not available in JSOM, however you can create such documents within a SP Lib, by directly using Office API method baked in SP core.js. Creating Documents via the Web App CoreInvoke('createNewDocumentWithRedirect2', event, '[template URL]', 'http://[server]' + (ctx.rootFolder == '' ? ctx.listUrlDir : ...


1

Turn management of content types back on. You will have a list of columns that includes "Used in." So if Column B is used in Content Type B only, it can be deleted.


1

I am not able to add a comment hence writing in the answer section. There are 2 scenario which you should verify. Scenario-1: Go to "File-> Publish" and verify your target library. Scenario-2: Verify your data connection once because there might be wrong target specified there. Let me know if above scenario defines your problem. Thanks



Only top voted, non community-wiki answers of a minimum length are eligible