Tag Info

New answers tagged

0

First - you must delete foreach ($list in $spsite.AllWebs) then find list using $list = $myweb.Lists["InternalNameOfTheList"] and after that add column using $spFieldType = [Microsoft.SharePoint.SPFieldType]::Text //change to your field type $list.Fields.Add("YourColumn",$spFieldType,$false) $list.Update() And dispose SPWeb object after using it, like ...


0

Change the logging to Verbose and see your ULS log entries, or login to one of the server and execute merge-splogfile powershell script to get logs from different servers in your farm and specify the start time and end time. (please read more on merge-splogfile command before you use it)


1

You can add the attribute ToolbarTemplate="None" in the View element <View BaseViewID="1" ... ToolbarTemplate="None" ...


0

Yes, you can create custom views through browser with out using SharePoint Designer. Please follow below steps. Select any Survey list-->Survey Settings http://********/InvIncidentReporting/_layouts/survedit.aspx?List=%7BBF870743%2D9654%2D4E19%2DB4B1%2D35527D4BE942%7D Edit URL with viewtype in place of Survedit ...


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 ...


2

Technically you can delete all of the views for the list and you will get a 404 if you try to access via the url. The list does technically still work if you are accessing it another way (like COM) though.


0

One of the new things about the External List in SharePoint 2013 is the ability to create external content types that are scoped at the app level in SharePoint 2013. In other words Business Connectivity Data models can be scoped to apps for SharePoint so you don’t have to deploy External Content Type to the Farm and you don’t have to involve an ...


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

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 ...


0

What you can do is select the List Instance in Solution Explorer, and then change the Deployment Conflict Resolution property (in the Properties window) to None. This way, the list instance won't be overwritten when the feature is activated.


0

Ideally you should leverage feature upgrade functionality. Take a look at this example: http://spblog.net/post/2011/05/02/How-to-upgrade-feature-in-SharePoint-2010.aspx Also, a bit closer to your situation (if you use content types to provision list/library fields): ...


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 ...


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 ...


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.


0

There's a built in feature in SP2010 and SP2013 called "related lists" that should come close to your requirement. Here is a blog post to get you started: http://sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=74


0

Arsalan has some good core ways to do this. An additional method would be to use Javascript to access the client object model (I would suggest using JQuery and SPServies) to grab the data and then display it yourself. This could be a better option if you have the Javascript skills and want a polished look.


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 ...


0

I found out that the Filterpath Property of SPAlert is only set, when the alert is set to a folder: private static bool IsSetToFolder(SPAlert alert) { //For each folder a filterpath is set string filterpath = alert.Properties["Filterpath"] as string; if (alert.Item == null || String.IsNullOrEmpty(filterpath)) { return false; } ...


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

private static bool IsSetToFolder(SPAlert alert) { SPListItem item = alert.Item; if (item != null) { if (item.FileSystemObjectType == SPFileSystemObjectType.Folder) { // Alert is set to Folder } } }


-1

disable the ViewFormPagesLockdown and try ViewFormPagesLockDown feature in SharePoint In General by enabling the anonymous access in SharePoint site, anonymous users will have read-only access to the site. But when we enable anonymous access to SharePoint publishing site, we can have issues with anonymous users in SharePoint site due to ...


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

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" ...


0

Go to SharePoint Designer, and switch to Code View. Locate the web part and the following line of code inside the block and remove it: <ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,morelinks_ellipses)" /> Save and refresh your browser. No more (More links...) link.


0

How to get rows count in List View <xsl:value-of select="count(/dsQueryResponse/Rows/Row)" />


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();


0

If you are creating farm solution,the scope should be set to Site if you are creating the list declaratively,since you cannot add List instances to "WebApplication" scope feature. Now activate the feature only in root site collection of the web application. If you don't want this feature to be activated even accidently anywhere else, keep this feature hidden ...


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

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>() ...


0

Well, adding the code below as a new function to the SPServices.js file, will work. The new function name is SPGetLastItemIdAnyUser : // Function to return the ID of the last item created on a list. $.fn.SPServices.SPGetLastItemIdAnyUser = function(options) { var opt = $.extend({}, { webURL: "", // URL of the target Web. If not ...


0

You need to define the method to call on OnSelectedIndexChanged event Replace your drop-down markup with: <asp:DropDownList ID="ddlRSM" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddl_SelectedIndexChanged"> </asp:DropDownList>


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)) ...


0

there are a few areas it could be going wrong! firstly check that the lists in question have not had their permission level inheritance broken, if so why? as you said the site allows annoymous users.... unless you want different permissions for the list? secondly: make sure your site is not in lockdown: To determine if a site has ...


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


0

This can be done using content by query web part and XSL. See this for more info: http://sharepointnadeem.blogspot.com/2011/09/cqwp-xsl-customizations.html CQWP style sheets are present inside a folder "XSL Style Sheets" in Style Library at the root site collection. ItemStyle.xsl file contains the style templates which can applied to the items ...


0

I doubt your list title is My_x0020_Rooms SP.ListCollection.getByTitle(strListName) uses the list title. My guess is that you have replaced the space with _x0020_ like you do with InternalNames of fields. So try changing it to: var oList = clientContext.get_web().get_lists().getByTitle('My Rooms'); Edit: You have done the same with siteUrl, that ...


0

I found a solution and it's rather simple really... What I had to do: Create a custom view for my list Edit that view to show the Heading and Subheading (it was shown graphically before, but not as "data") Edit the view so it has a really large "limit results" number. I chose 10000 per page for now (otherwise the created xml file doesn't show all data ...


0

Open the AllItems.aspx page for the specific list. Search for the tag List item LinkToItem="TRUE" to whichever column you want the link: < ViewFields> < FieldRef Name="Attachments"/> < FieldRef Name="LinkTitle"/> < FieldRef Name="linkThisColumn" LinkToItem="TRUE"/> < FieldRef Name="data_x0020_column"/> < FieldRef ...


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 ...


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 ...


0

I've solved it now. The solution was to first give the user group access to the sub site itself. Before I had given the user group the Permisson Level Read - but then they would be able to see all the links in QuickLaunch and go to the site. However, I found there was already an existing Permission Level with very restricted permissions Restricted ...


0

Sorted! Just used a Dataview webpart with a 'contains' filter. If anyone else has the same prob, see this: http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77 - just follow that guide but replace text filter web part with current user filter :)


0

May be this is due to incompatibility of provided property. It is a check box type property and the assigned value is a string. If you could try to assign a bool value to this "Completed" field instead of a string value it might get work.


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 ...


0

When using picture buttons, head to the picture button properties and deselect the option that says 'Hide picture button in read-only views'.


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 ...


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

Yes, you can follow List Items.. The functionality is called "Alert Me" Following article should help: SharePoint 2013 - Alert Me - Option



Top 50 recent answers are included