Most Popular

1500 questions
28
votes
3 answers

What is the difference between PreSaveAction() and PreSaveItem() on SharePoint list forms?

I am performing some custom validation on a custom list form using javascript. I had my code in "PreSaveAction()" and it was working. At some point it stopped working and I determined that the code was now calling "PreSaveItem()" instead. My fix is…
Chloraphil
  • 1,088
  • 1
  • 9
  • 21
28
votes
6 answers

Facebook-like notifications when new item is added to certain list/library?

I was wondering if this is possible. The screenshot below somewhat illustrates what I'm searching for. I'd like to show a notification in a box whenever a new item has been added to a certain list or library. Like when you're on Facebook and…
Magali
  • 1,511
  • 10
  • 31
  • 51
28
votes
4 answers

How to get a file using SharePoint Client Object Model with only an absolute url at hand?

We have a database with absolute (full) links to SharePoint files. If a user wants to download or get checkoutstatus information about the file, our program needs lookup that information in SharePoint. We have done this easily in the past with the…
Robin
  • 746
  • 1
  • 6
  • 9
28
votes
7 answers

Sharepoint Lists vs. Sharepoint Libraries

Fundamentally, what is the difference between the two? I'm in the really early stages of working out what's what with sharepoint and I can't seem to tell the difference between the two.
JᴀʏMᴇᴇ
  • 1,071
  • 2
  • 19
  • 48
28
votes
4 answers

SharePoint 2010 Application Pages. vs. Web Parts

I have done many a search on this issue with mixed results and ensuing ambiguity. The time has come to nail it down for good. If I'm developing the equivalent of a complex ASP.NET application, and I want to run it on top of SharePoint 2010, is it…
anon
  • 61
  • 1
  • 2
  • 3
28
votes
7 answers

Powershell: cannot access the local farm

Yes, I am logged into the machine as an administrator, and my domain account id a farm admin as well. The site is running properly, and nothing seems wrong in SP Central Administration. But when I start powershell, I get "Cannot access the local…
Daniel Williams
  • 1,194
  • 3
  • 13
  • 24
28
votes
3 answers

Find Document by GUID

I'm missing something that must be so simple that it's not even worth asking... but I have an object ID (GUID)... How do I figure out the document it points to? For example I have a GUID of 137DA01F-9AFD-5d9d-80C7-02AF85C822A8 and need to know what…
Iunknown
  • 547
  • 1
  • 6
  • 9
27
votes
6 answers

Hide the "Add new Item" option below the sharepoint 2010 list

I have a sharepoint 2010 list, I want to hide the option "add new item" which resides below the list, any suggestions?
SandeshR
  • 1,992
  • 17
  • 67
  • 115
27
votes
2 answers

HTTP 401 twice before HTTP 200 when serving files

I've built a Javascript web application which is served from Sharepoint (ie. there is no Sharepoint code at all operating on the web app, it's just some HTML/JS being served from a Sharepoint 2010 Document Library) I'm displaying HTML5 video and…
JP.
  • 463
  • 1
  • 5
  • 10
27
votes
1 answer

How to get a SPFieldLookupValue from an SPListItem?

When you get an SPListItemCollection from a SPList.GetItems(SPQuery) request, and the items have SPFieldUser or SPFieldLookup fields, what is the sexy way to get typed values, not the item["Field"].ToString().Split('#')[1] way, please?
Alexey Krasheninnikov
  • 2,750
  • 2
  • 24
  • 42
27
votes
4 answers

REST API OData Filter on Boolean not Working

When I perform a REST query to the following URL: _api/web/lists/getbytitle('BtProjects')/items?$filter=Active eq true I receive only the one item that has this field marked as false. I get the same result when regarless of whete I use eq true or…
Robert Kaucher
  • 6,469
  • 7
  • 41
  • 80
26
votes
2 answers

how do I view the older version of the document without restoring?

If I add version to my documents and later on want to retrieve copy of an older version, how do I do that without restoring the older version? In my document library there is a file "test" that has two versions. How do I download the earlier version…
Karthikeyan
  • 2,548
  • 14
  • 82
  • 142
26
votes
4 answers

How are you doing automated testing?

One area that I have always found a challenge is being able to get my automated builds (in whatever guise, MSBuild Nant etc) to deploy the created solution (WSP) to a remote machine, install and test it works and then report back on the success of…
AndrewWoody
  • 626
  • 5
  • 8
26
votes
6 answers

Send E-mail from javascript using REST API

I want to send email using Javascript/jQuery using REST API in SharePoint. I have tried _api/SP.Utilities.Utility.SendEmail and this is my code: Code $.ajax({ contentType: 'application/json', url: urlEmail, type: "POST", …
Kaushal Khamar
  • 1,382
  • 2
  • 13
  • 32
26
votes
5 answers

Organizing WebParts in Visual Studio - Best Practices

My team is responsible for maintaining a SharePoint 2010 site that was developed by another group. This maintenance includes updates to existing web parts (approximately 20). Currently, all of these web parts belong to a single feature. A few of…