The spcontext tag has no wiki summary.
0
votes
3answers
125 views
sharepoint 2010 context menu event handler
i want to hide sharepoint 2010 list/library context menu based on users.
i am using below javascript
$(document).ready(function(){
$('.ms-MenuUIPopupBody').live('blur', function() { ...
1
vote
1answer
29 views
Web.GetListItem with a non list URL breaks SPContext
We have a bit of a weird issue and i was wondering if anyone had any insight on why the issue was occurring.
We have a page deployed into the SharePoint root which has a custom webpart which would ...
2
votes
1answer
82 views
Calling SP.ClientContext in a loop Javascript
I'm looping through a number of sites to run a query that checks whether new content has been added to document libraries in that site in the previous three days. However, I'm having problems. When I ...
0
votes
1answer
184 views
Accessing a list from app web on host site generates access denied
I am trying to get title of a list which is located on Host Site from an SharePoint hosted app by using csom (javascript). I have added permission on Manifest file and chose the list but still getting ...
1
vote
3answers
375 views
Is there an alternative to SPContext.Current.Web.CurrentUser?
I have found that SPContext.Current.Web.CurrentUser is really unreliable. One out of ten requests that object comes back as null.
Is there an alternative to SPContext.Current.Web.CurrentUser?
Has ...
1
vote
2answers
87 views
How to determine item ContentType in FormControl (FieldIterator for instance)?
I've implemented my ListFieldIterator to change the way field controls rendered.
I'd like to change the behaviour of form depending on the item content type,
but any attempts to determine ...
1
vote
3answers
114 views
SPWeb = this.Web always points to Central Administration?
I'm learning SharePoint 2010 and facing a strange problem :
I implement a custom action to add a ribbon button under Documents tab, this button has a command to open a modal dialog in my site which ...
2
votes
1answer
82 views
Will using a `SPList` object derived from a disposed `.OpenWeb()` cause errors?
Will using a SPList object derived from a disposed .OpenWeb() cause errors?
SPList list = null;
using (SPWeb web = SPContext.Current.Site.OpenWeb("/myweb")){
list = web.Lists["Awesome Name"];
}
...
0
votes
1answer
155 views
Setting a Lookupfield for current Item in List
my use-case:
I'm trying to implement an event-management system to sharepoint using visual web part(s).
I have two custom lists, one is called "events". Let's say it has a column "Title" which shows ...
1
vote
1answer
237 views
Get SPWeb from SPContext in WCF hosted on SharePoint
I have created and deployed a WCF service in SharePoint and I am sending requests using JQuery. Every thing is working fine except for sub sites.
Lets say I have these two service URLs:
- ...
0
votes
1answer
121 views
SPContext of Application Page in Modal Dialog
I'm trying to get a specific group out of the group collection of the current SPContext.
The current SPContext is hosted in a Application Page, which is displayed in a Modal Dialog.
The web instance ...
0
votes
1answer
107 views
Grab list of site collections from SPFarm object
I have a Farm level feature that returns null when I try to access SPContect.Current.Site. Is another way to grab a list of site collections? I have access to SPFarm.Local
0
votes
1answer
247 views
Adding ASP.NET Web Application to SharePoint Virtual Directory (for SPContext)
I'm inheriting an ASP.NET application that is hosted within the IIS SharePoint web site. From IIS, right click the Web Site, and click 'Add Application' is the method used here.
In our dev server, ...
0
votes
2answers
373 views
SPContext.Current is sometimes null in code behind of InfoPath
On occasion I find that SPContext.Current returns null in the code behind of my InfoPath forms. This is occuring while I have the form open in a SharePoint 2010 site collection. I can't figure why ...
1
vote
1answer
278 views
ClientContext error while embedding a Silverlight control on ASP page
I build a visual web part in asp.net and I'm trying to embed a xap over it so that users who don't have Silverlight installed would see the asp content:
<object id="SilverlightPlugin1" ...