Tag Info

Hot answers tagged

3

This is a known issue with MS15-022 and the March 2015 CU. http://thesharepointfarm.com/2015/03/march-2015-cu15-022-task-list-filter-issue/ Simply add a Style (any will do, except the default one) to the View, and it will be resolved. Alternative option is to enable Server Render if displaying the Task List in a Webpart.


2

According to Working with folders and files with REST the following example demonstrates how to create a Folder: url: http://site url/_api/web/folders method: POST body: { '__metadata': { 'type': 'SP.Folder' }, 'ServerRelativeUrl': '/document library relative url/folder name'} Headers: Authorization: "Bearer " + accessToken X-RequestDigest: form ...


2

PirateEric's comment is correct. Though, it's not that SSRS respects item level permissions, as SSRS is just making calls like any other app. So it's entirely the responsibility of SharePoint to implement permissions. If SSRS makes the call as a user with access to everything, then the report will have everything. If SSRS makes the call as the current user, ...


2

JSOM var listTitle = 'Tasks' var itemId = 1; var fileName = 'Instruction.docx'; var ctx = SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle(listTitle); var item = list.getItemById(itemId); var attachmentFile = item.get_attachmentFiles().getByFileName(fileName); attachmentFile.deleteObject(); ctx.executeQueryAsync( ...


2

You can achieve this with what is called Client Side Rendering (CSR). These are the best articles I have come across on CSR and how to use it: SharePoint 2013 Client Side Rendering: List Views SharePoint 2013 Client Side Rendering: List Forms Note: Some people use the terms CSR and JSLink interchangeably, but they are NOT one and the same thing. CSR is a ...


2

You should be able to do this using custom js link for the default list view, check out these sample it will direct you on how to implement it. Client-side rendering (JS Link) code samples There is an awesome post which describes the appraoaches for JS Link check out: SP 2013: Using the JSLink property to change the way your field or views are rendered in ...


2

Remove "Lists/" from your module's Url parameter. <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module RootWebOnly="FALSE" Name="Templates" Url="ActivityReports/Templates" Path="Templates"> <File Url="Template1.xlsx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" /> <File Url="Template2.xlsx" ...


2

The short of it is you can't with workflow, they operate after the item has been added or changed. You need to use an event receiver to do that if you want to perform some operations before the item is saved. You would want to look at the ItemUpdating event, since you want to do it as part of the edit operation.


1

You can do it using below code SPList list = currentWeb.Lists.TryGetList("ListName"); if (list != null) { SPContentType itemCT = list.ContentTypes["CTName"]; if (itemCT != null) { list.ContentTypes.Delete(itemCT.Id); list.Update(); } }


1

I am not sure you can do this OOTB, due to two different version of SharePoint and separate farms. I am thinking, your options will be either some kind of custom development or use the BCS to get the data. Business Connectivity Services in SharePoint 2013


1

In that case you don't need to specify CamlQuery.FolderServerRelativeUrl property at all. The following example demonstrates how to retrieve items of top folder in List: var list = ctx.Web.Lists.GetByTitle(listTitle); var items = list.GetItems(new CamlQuery()); ctx.Load(items); ctx.ExecuteQuery(); If you are interested in returning only items associated ...


1

You just need this: SPQuery query = new SPQuery(); SPListItemCollection myItems = list.GetItems(query); By default you get the files under the root folder. Scopes in a CAML Query


1

I wonder if SharePoint's default client side rendering could be taking effect and rendering over your changes after you have applied them ? At a minimum it might make a difference if your CEWP is above or below the listview web part ? Also do you need to call jQuery(document).ready() ? eg. (I have not tested this...) <script type="text/javascript" ...


1

You can add lookup columns to Site Collection parent site and have it reflect as lookup within child sites by creating the site column as lookup. But cross site collection, it is not possible OOTB. There are 3rd party solutions available if you search for "Sharepoint 2007 Cross Site lookup".


1

I agree with the previous answers ! I have recently started using CSR to style both lists and some basic modifications to new / edit / display forms. Once you get going with it, there is quite a bit you can do. The links provided are excellent, I just wanted to add one of my own with a working script as I struggled to find examples that showed how to ...


1

Its should be $select=Collaborators/Title&$expand=Collaborators Example your URL should like http://yoursite/_api/web/lists/GetByTitle('Employee Details')/items("1")?$select=ManagerName/Title,FirstName,LastName,Position,Phone,Fax,PreviousCompany,Reference,BirthDate,Relocate,EmailAddress&$expand=ManagerName


1

This question is kind of off-topic. To implement this you need to use API's provided by Instagram Then using C# connect to there service end points and read the images etc. Now comes the on-topic part - You need to load this into SharePoint. For that you can refer following links ...


1

You can access this information via the MajorVersionLimit and MajorWithMinorVersionsLimit properties of the Microsoft.SharePoint.Client.List object. For example (managed OM): string url = "http://yoursite/subweb"; using (var clientContext = new ClientContext(url)) { var web = clientContext.Web; List list = web.Lists.GetByTitle("YourDocLib"); ...


1

Yes, 0x00000000 means "no error". You'll find a definitive confirmation in the Open Specifications: If an operation completes successfully, the value of the ErrorCode MUST be set to 0x00000000. You'll find the meaning of other codes in the same article.


1

The solution I would use instead of populating the options based on the selection would be to create two different fields in a list (meat options and vegetable options). With that you could throw in a simple script on a custom form to show the meat options when the meat radio button is selected and same thing for vegetables. This way all of your ...


1

You can use script Web part and insert a tag style .ms-headerSortArrowLink{visibility:visibility !important; } The important should override the in line style


1

The columns defined as unique (so the BDC identity was built on that colums) were not unique in the sql view, that why I had not unique BDCIdentity.


1

Open site in SharePoint Designer From left navigation choose Lists and Libraries Open the list in question Now from right pane - Look under "Custom Actions" Select the action to delete Use Ribbon "Delete" button OR press Delete key


1

You can use the Fields REST API. First you would get the fields, then you could enumerate through each to get the current default values. If the user changes the default value, you could use a HTTP MERGE request to update the DefaultValue property. This could all be done with HTML JavaScript. A nice addition would be to use the ...


1

I have done it using SPServices and it works fine. Below is the code: $().SPServices({ operation: "DeleteAttachment", listName: "List Name", listItemID: itemId, //list item id url: filePath, //url of attachment that needs to be deleted completefunc: function (xData, Status) { console.log('Deleted'); } }); Source you can ...


1

There is no OOB way of limiting the access to a list column. The column can be hidden from the form using JavaScript but users can still see the page source and grab the information from there. Following example shows how to do it using JavaScript: <script type="text/javascript" src="/Shared%20Documents/JS/jquery.min.js"></script> <script ...


1

The problem is that in earlier versions of SP (2007 and 2010) there was an actual calendar list (type 106) that came prepopulated with "properly" named columns. owssvr.dll is looking for columns with internal names of EventDate and EndDate. So create columns with those names. (You can change the display names later if you want.) Found the answers in these ...


1

You can use just a small trick as mentioned below. Sample Code : foreach (SPListItem item in list.Items) { foreach (SPListItemVersion itemVersion in item.Versions) { if (item.File.Versions.GetVersionFromLabel(itemVersion.VersionLabel) != null) { ...


1

You can split the version label and check is the second part 0 string[] versionArray = itemVersion .VersionLabel.Split('.'); int minorVersion = Convert.ToInt32(versionArray[1]); if (minorVersion == 0) { //this is a major version } or you can check the reminder when dividing VersionId with 512 int modulo = itemVersion.VersionId % 512; if (modulo == 0) ...


1

The best way to open a modal dialog in SharePoint 2013 is to use the built-in JavaScript function called "OpenPopUpPage". This was introduced in SP2010 and is used widely throughout SP2013. To change the page being loaded within the modal dialog, you can then use a simple "window.location.href" function. EXAMPLES: Opening a Modal Dialog <a href="#" ...



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