Tag Info

New answers tagged

0

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


0

Check my answer on the other questions in the forum. I am sure you want the same thing: Relational List fields


0

You can use SPGridView. Populate a data table with the necessary values and bind it the SPGridView. You can use below code to start with: public class SiteOwners : WebPart { string mySiteURL = "my SharePoint URL goes here"; string listInfo = ""; SPGridView spGrid=new SPGridView(); protected override void ...


0

I did a lot of testing today and found out that all the fields I can't select are so called Managed Metadata Columns. And these unfortunately can't be selected in a list query with the REST API.


0

I cannot tell you why you cannot simply select File_x0020_Size, nor can I tell you why you cannot select other fields in REST. I can, however tell you the REST url to retrieve document file sizes: /_api/web/lists(guid'<guid>')/files?$select=size


1

For the REST API, file size is returned in a field called 'Length' when you request a specific file object like with: /_api/web/getfilebyserverrelativeurl('/<folder name>/<file name>') http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx#bk_FileProperties EDIT1: re-read question and realize you probably want the size of ...


0

The problem ended up being because require.js was being loaded in the custom master page that was applied. I removed the tag that was loading require.js and moved it into the webpart designer, everything works fine now. No idea why this was causing this error, but this fixed it 100%.


0

You can probably do this through javascript if you want, as it's pretty easy to just hide boxes. I'll write an example. Let's say your checkboxes are defined by the name "col_checkbox". var target = document.getElementsByName("col_checkbox"); //Now we have all the checkboxes in a node array var checkFlag = false; for(i = 0; i < 5; i++) { ...


1

If you're on SP 2013, use JSLink and add the jquery/javascript to allow selection of one checkbox (in post Render handler) the NewForm and EditForm. SP renders the checkboxes within individual TDs that have a parent table with your column name + guid. For ex. If you have a column named 'MyCheckbox' ...



Top 50 recent answers are included