Tag Info

New answers tagged

0

it's not allowed to add item in sandbox solution so i developped a client script to complete this action


0

I would first check if your Event Receiver is attached to the list. It's easy to view all attached Event Receivers with PowerShell: $web = Get-SPWeb <Url> $list = $web.Lists["<ListName>"] $list.EventReceivers


0

You can look in the IIS logs. Look at the cs-uri-stem and cs-uri-query fields and you should see your web service calls reaching the web server. You can also insert a proxy (like Fiddler) to view the traffic leaving your browser.


0

Personally I'm not sure if it is a good idea from a user experience point of view to add a separator between each and every field. Instead if the amount of fields are fixed on the list/app in question I would rather apply kind of grouping by only adding a separator after a logical group of fields, but that's an advanced task. However here's a piece of CSS ...


0

listToLoad.Update() is not required to add an item. newItem.Update() should be enough.


0

I understand where you are coming from Sivakumar, LINQ to SharePoint is a beautiful thing, especially when coming to SharePoint from other development areas EF/Linq to SQL etc. Unfortunately in my experience it just doesn't work. I have written and deployed solutions using it. Yes it can perform worse than an equivalent CAML query. But the problem I had ...


1

As Robert pointed out using Linq directly on SharePoint lists is not a very good choice regarding performance. The reason is that Linq uses the GetEnumerator method of the IEnumerable interface to execute the Linq query. And every time GetEnumerator is used all SPListItems are retrieved from the database. For 100 list items this means 100 roundtrips to the ...


0

You can try following: List<SPListItem> listItems = list.GetItems(query).Cast<SPListItem>().ToList();


0

Their has to be a proper schema defined for creating your custom edit form. I think you have missed some required attributed in your custom edit form. Please check the following link: Custom list Edit form


0

Code to get the data from list using ecma script object model. <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true" Localizable="false" /> <SharePoint:FormDigest runat="server" /> <script src="../jquery-2.1.0.min.js" type="text/javascript"></script> <script type="text/javascript"> var rowscount = 1; ...


0

you need to use itemDeleted method within the event reciver! code to use: public override void ItemDeleted(SPItemEventProperties properties) { Response.Redirect("http://yourSiteHomepage.co.uk"); } i would say use code below but you cant as there is no httpContext in event reciver so code above should work fine! ...


1

You can use _currentContext.Response.Redirect as below: public class TestEventHandler : SPItemEventReceiver { private readonly HttpContext _currentContext; public TestEventHandler() { _currentContext = HttpContext.Current; } // Methods public override void ItemAdding(SPItemEventProperties properties) { var url = new ...


1

We are in a similar situation. We recognized that in some case our permissions are unqiue but allways the same :) (unique permissions in some flow was always setting the same 2 AD groups). This is helpful as we can move these items down into a folder that has the unique permissions without having to assign it to each item individually, reducing the amount ...


2

You are getting the field, not it's value. To get the value use this: item["Title"]


0

If you remove the item level permission then you cannot get the same security level. Once you removed the item level then you move list level permissions. user can get the view / edit / delete at list level. To get this done, you may think about 3rd party solutions. How much total time Page taking to load. 3000 MS mean 3 sec that's not bad in my opinion, ...



Top 50 recent answers are included