Tag Info

Hot answers tagged

2

There are 2 possible cases I can think of where this might happen. The first and most obvious one is if the list items were created before the column was required. Items without the required fields will continue to exist, but can not be updated without having the required information added I believe. The other way would be for a document library where a ...


2

There's nothing OOTB that I know of. I can think of 2 options and they both essentially do the same thing. Customer Event Receiver -- you need to use the ItemUpdating event which isn't overly painful if you're familiar with sharepoint event receivers. This should help -- Item Updating Event Receiver The downfall is now you want to alert someone so you ...


2

=IF([WIP Target First Production Date]="","",IF([ATP Type]="Tin",DATE(YEAR([WIP Target First Production Date]),MONTH([WIP Target First Production Date])-4,DAY([WIP Target First Production Date])),IF([ATP Type]="Film & Tray",DATE(YEAR([WIP Target First Production Date]),MONTH([WIP Target First Production Date])-3,DAY([WIP Target First Production ...


2

Add the RootWebOnly="true" property to your custom list. The Feature with the Custom List must be scoped to Site. <ListInstance Title="My custom list" FeatureId="00BFEA71-DE22-43B2-A848-C05709900100" TemplateType="100" Id="MyCustomList" Description="Simple custom list sample." ...


1

Two options avalable to retrieve custom fields Check if the field is a built-in field: SPBuiltInFieldId.Contains(field.Id) Check SPField.SourceId


1

OOTB Alerts does not have the flexibility to be called only when the particular field in list item is changed , rather it will be called when any field in the list item is changed. You can create similar functionality with 2 approaches : Create an Event receiver which will be called on item updating.Compare before properties and after properties value of ...


1

It's hard to know exactly what your error is but it looks as though your event receiver is doing something to cause the event receiver to re-fire. This could be caused by, for example, adding an item to the list as part of the OnItemAdding event. Or, more insidiously (and this I have actually seen, as opposed to the first example which is pretty easy to ...


1

Craig, You can use SPEmailEventReceiver to parse the email body.. Tip: If you want to debug your custom EmailEventReceiver, you have to attach your debugger to the ows process (not the w3wp) and you have to reset the Sharepoint Timer Service after deployment. - it costed me 3 days to figure this out. See here Reference: Event receiver not ...


1

A great tool I used when running into the "file locked for editing" issue was using the SPUnlock web part this just works. I've used this web part numerous time so unlock files for deleting. All you have to do is.. Download SPUnlockSandbox.wsp from https://spunlockfiles.codeplex.com/ Upload SPUnlockSandbox.wsp to SP Site Collection Solution Gallery ...


1

If that is the error, I think your $l is null, meaning that your are not getting a reference to the list! $list = "Business Screening" $item = 329 $w = get-spweb $url $l = $w.lists[$list] should probably be $list = "Business Screening" $item = 329 $w = get-spweb $url $l = $w.Lists.TryGetList($list) #this finds list by title


1

MSDN documentation says the following Direction, Required Text. Specifies the direction of the reading order for the list. Possible values include RTL (right-to-left), LTR (left-to-right), or none. Languags can be Right-To-Left, like arabic and Left-To-Right Languages like english. This can have an impact on things like sorting, filtering etc.


1

Debby, I hope you already know how to connect lists using Lookup columns.. If not, please let me know.. Out of the box, you can create Connected Web Parts to build such a View.. It won't be a single View, it will be different views from different lists but all connected to show meaningful information.. A sample can be seen Connecting web parts with a ...


1

I would set up a Business Data Connectivity model to consume data from PostgreSQL and expose it in the form of an external list. There are plenty of tutorials on the internet on how to go about it, for example: http://raquelalineblog.wordpress.com/2013/05/19/sharepoint-2013-bcs-in-visual-studio-2012/


1

Just want to point out an alternative syntax which should render the same solution: return listCollection.OfType<SPList>() .Where(list => list.ContentTypes.OfType<SPContentType>() .Any(ct => string.Equals(ct.Name, contentTypeName, StringComparison.InvariantCultureIgnoreCase))).ToList();


1

Create a Extension Class public class Extensions { public static List<SPList> GetLists(this SPListCollection listCollection, string contentTypeName) { List<SPList> documentLists = (from SPList document in listCollection where document.ContentTypes.Cast<SPContentType>() ...


1

See if you want the list instance in only root site collection's root web than you will only ACTIVATE the feature in root site collection's root web.. Its all about activating the feature, you can keep the scope to web or site collection, what ever fits better.. If you don't want admins to activate feature in other site collections than you might need to ...


1

for your origional question iv answered here about getting the root web of a site: for the root web of the site collection: SPWeb spWeb = SPContext.Current.Site.RootWeb; SPList spList = spWeb.Lists.TryGetList("MyList"); if its the root web of the root site collection than roberts way is the right way to get the spsite root! SPSite URL value following ...


1

To access the rootweb use var rootWeb = SPContext.Current.Site.WebApplication.Sites[0].RootWeb; If your user will not have access to this collection, you must open it up in elevated privileges: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(SPContext.Current.Site.WebApplication.Sites[0].Id)) ...


1

Create a new view for your list (either from SPDesigner or the browser UI) and make it the default. Now, in SPDesigner, go to Lists and Libraries > your list > Views > Right click on the new view and Edit file in advanced mode. In Split mode, hover the mouse over the first EmployeeID field value, then click right before it and enter some dummy text (see ...


1

If you already made the changes and as you are aware of changes you made in production. Make similar changes in dev,test box . Write the custom code to remove the changes you made and write the code for adding content types,lits etc . Deploy it and test in dev/test. Its safe , not a problem.


1

Did you change the order of the default view (or any other view that you are using). The second image is of a list view where the ordering needs to be changed & not the actual order in the list settings. Go to list -> Ribbon -> List -> Modify VIEW, then give required ordering & say OK. (here ensure that default view is selected)


1

Regarding your first question: you can also use PowerShell to accomplish this. Powershell has built in cmdlets to open and process XML and the SharePoint cmdlets will allow you to easily insert this data into a list. This snippet shows how easy it can be: Use the [XML] type accelerator to convert results from Get-Content into an XML document, and then ...


1

Use SPUtility.CreateISO8601DateTimeFromSystemDateTime to create relevant DateTime string. DateTime firstDay = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); string firstDayValue = SPUtility.CreateISO8601DateTimeFromSystemDateTime(firstDay); string firstDayValueplus1Month = ...


1

As always, all the strange issues have simple answer, for on of the list where i was able to search 20 items, I noticed that we have "Content Approval" setting was turned on. Hence all the items were considered as "Draft" and visible only to people with admin privileges. Since i have full access on the farm I was able to see everything. Another thing ...


1

First: Double check that the web application allows anonymous. The web app is where the authentication protocols for your hostname are set. This has two steps The authentication provider needs to be set to "enable anonymous access" The web application needs to have an anonymous policy set to "no policy" and you should have the zones set to "all zone" ...


1

Great Info! In an attempt to make a more exhaustive comparison (because none exist!) here are a couple of things left out: List list attachments are not indexed. This has a lot of implications. When searching, you cannot use the refiners to narrow down the doc type. List attachments will not work with the eDsicovery feature! No location based default ...



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