Tag Info

New answers tagged

0

Your solution is right, this is another solution using a hashtable variable: you can upload the file from a SPFolder or SPWeb as following: // Add custom value to the column library System.Collections.Hashtable properties = new System.Collections.Hashtable(); properties.Add("My custom column name", "My value"); web.Files.Add("CustomFolder/" + name + ...


0

If you have Attachments enabled, then go to Modify View and select Attachments to see them. Attachments are usually enabled by default. Attachments is one of the columns that is automatically added to a list based on settings (like version) so you cannot add or remove it in the list settings.


1

This will give you the format 2013-2014, 2014-2015: =IF(MONTH(Created)>6,YEAR(Created)&"-"&YEAR(Created)+1,YEAR(Created)-1&"-"&YEAR(Created)) It takes MONTH>6, so you could adjust that parameter for fiscal start. And for FY 2014, FY 2015 etc, you could use this formula: =IF(MONTH(Created)>6,"FY "&YEAR(Created)+1,"FY ...


0

This formula should work: =IF(DATE(YEAR(Created),10,1)>Created,YEAR(Created),YEAR(Created)+1) This is an adaptation from this link. Created is a column that stores what the name implies. I hope this helps.


1

There are two ways of showing the attachments of List Item in the same grid where List Items will be shown. Check the followings: This TestList, each one contains multiple attachments. Way 1: Using JavaScript--> Go to the Site > Site Assets and upload jquery-1.11.1.min.js, knockout-3.0.0.js and Script.js. Script.js will contain following code: var my ...


1

I would use the CodePlex SPSERVICES project (http://spservices.codeplex.com/), which is compatible with SharePoint 2007. SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works ...


1

If you're using pure javascript, the easiest way is to add the field back to your page, hide it with a css style or some other javascript, then read the field value directly. If you need, you can edit the Dataview Webpart in designer to give the tds in that particular column a special class or something to make it easier to select.


0

The design view was removed from SPD2013, so that is why you do not see the options to edit the view. The suggested method in SP2013 is to use JSLink to change the column. A couple of references: Martin Hatch: http://www.martinhatch.com/2013/08/jslink-and-display-templates-part-1.html Chris O'Brien: ...


0

In my experience, the column will have to be created as a site column to show up in a CQWP. If you created the column in the document library only, it will not show up as a filterable column.


1

You'll need to make sure that your custom column is a Managed Property in your Search Schema. By default, all site columns are also created as Managed Properties, but if you created the custom column in the document library itself, it won't be in the Search Schema as a Managed Property, it will just be a Crawled Property. In Central Admin, go to your ...


1

Just add a conditional check for column A to be blank. =IF(A<>"",CONCATENATE(A,", ",B, " feet"),"") If A isn't blank, it'll return the concatenation, otherwise it returns an empty string.


1

Here is one approach I would take just to keep things as they are: If you want to remain true in using snippets as they are presented, simply load that value onto your custom .html page layout or .htm master template. Wrap it in a div element that has either a unique id or unique class name. Then from your custom java script file, modify the DOM based on ...


0

Try setting ShowInNewForm, ShowInEditForm, ShowInDisplayForm to true $web = Get-SPWeb "http://test" $list = $web.Lists["listname"] $fields = $list.Fields.GetFieldByInternalName("nameofcolumn") $field.ShowInEditForm = $true $field.ShowInNewForm = $true $field.ShowInDisplayForm = $true $field.Update() $web.Dispose()


0

Go to Document Library > Library Settings Click on the Advanced Settings Click 'Yes' in 'Allow management of content types?' Come to Library Settings Click on the 'Document' under 'Content Types' Click on 'Add from existing site or list columns' Choose 'List Columns' under 'Select columns from:' Add the columns which are not showing in the NewItem, EditItem ...


0

Create a content types that inherits from Document that includes your additional columns. If you're creating a custom list definition in Visual Studio you can set the ShowInNewForm, ShowInEditForm etc attributes to True. Try this: https://spcolumnpermission.codeplex.com/ EDIT: 4. When creating your document library columns, under the Additional Column ...


1

I fixed it by removing the "multiple values" check! Who knew?


1

It introduces other complications, but your best bet may be a lookup field. Create a secondary custom list called Countries. Then build a lookup column in the first list which references the Countries list values. Now your example will work the way you intend.


0

their is no OOTB way to filter the LookUp. Their are couple of options you can try. Use SharePoint designer with a text column to get this Applying Filters to Lookup Fields with the SharePoint 2013 REST API their is codePlex solution for this



Top 50 recent answers are included