Posts

Showing posts with the label XML

SharePoint Views [Me]-Filter in Schema.xml

Image
Everybody knows the [Me]-Filter in views. It is a nice way to help me seeing my items. This filter is set in SharePoint pretty fast.. you just need to modify you view, scroll down to the filter region and select a person field and show it if its equals the value "[Me]". It looks like this:

SharePoint 2013 WebPart with custom properties

Image
If you created a WebPart for SharePoint 2013 and you want the user to customize it, you will need properties. Setting them up is not that easy as you think. You need to edit two files. Lets begin with the <yourWebPart>.ascx.cs file. What you will do there is setting up the propertiesobjects. Later you can use them to read the values the user typed in. I make a difference between two kind of properties: 'easy' and 'not that easy properties'. I do not call it 'not that easy', because it is hard to use, I call it that way because you need a line of code more. An easy propertiy would be a textfield. The code you need to add would look like this. 1 2 3 4 5 6 7 [WebBrowsable(true), WebDisplayName( "<youtDisplayname>" ), WebDescription( "<yourDescription>" ), Personalizable(PersonalizationScope.Shared), Category( "<yourCategoryname>" )] public string customTextProperty { get ; set ; }

XML Manager - read and write XML-files

If you want to use XML structures in your project you need to read and create XML files. For this I got a class called XMLManager. The only thing you need for this is a shema of the XML structur you want to read or create.

Add external tools to Visual Studio

Image
External tools in Visual Studio are great "Add-Ons". There are so many usefull tools, you just need to know them. For example you can create .NET classes out of XML-Shemas(XSD) or add DLLs to the Global Assembley Cache (GAC) of a server. To configure an external tool you need to call Visual Studio 2010 or above. Press "Tools" and go to "external Tools...". A mask appears.