Save List<T> to XML file
So we need to save our List<T> to XML file for something. For example, for work with it in Access. C# is great for this with using System.Xml.Serialization. There are only 4 strings of code to save an XML-file. Read more»
So we need to save our List<T> to XML file for something. For example, for work with it in Access. C# is great for this with using System.Xml.Serialization. There are only 4 strings of code to save an XML-file. Read more»
Once I needed a CAML query for selecting elements with non-empty column. I wanted to select all the users with name detected (filled) and with OS “Windows”. First I decided to use <Neq> construction and <Value Type=’Text’></Value>. I thought it’s an analog for var != “”. But the result was wrong. Read more»
In a list with a field type “Choice” you can know available options of this field from codebehind without reading all list values and not making them unique with Distinct(). Especially, you can’t just read and make Distinct() list values if your field allows multiple choice or if you don’t have all options. Read more»
Недавно понадобилось узнать, сколько элементов содержит список SharePoint. Почему-то SharePoint пишет о количестве элементов только тогда, когда их очень много, предупреждая о том, что надо быть внимательней и не превысить пороговое значение. Read more»
Today I needed to know a quantity of SharePoint List. Somewhy SharePoint doen’t give this information using common tools. But using PowerShell it appeared to do easy. Read more»
Working with SharePoint lists I often use lookup values. But when I write C# solutions for lists I have some difficulties with LookUp Values. Trying to get LookUp Value as string it looks like “213;#lookup value”. Read more»
For deleting SharePoint groups you can use SharePoint Designer. For this you should open site in SPDesigner, in left column goto “Site Groups”, select groups for deleting and press Delete button on keyboard or in ribbon. But this process doesn’t always work. And when I wanted to remove user groups SPDesigner hanged and reported error […] Read more»
If you made a developer machine for SharePoint on Windows 7 (x64), you must remember – run visual studio only “Run as administrator” even if your account is administrator for developing SharePoint solutions. Or you can turn off ULC but I don’t recomend it. Read more»
While testing SharePoint solution with SPLists I often need empty list. I’d like to have analog for “Truncate” in SQL, but there’s nothing for SharePoint. So I wrote a short PowerShell script for deleting all items in SharePoint List. Here it is Read more»
I found very nice extender for Ditto Modx. When using snippet Ditto with custom page Ids, you have strange sorting – I haven’t even understood which one. For sorting documents as you write in &documents=`[x, xx, xxx, xxxx]` you shoul use the ditto-extender below. Write Ditto callout this way: [[Ditto? &tpl=`razdel200` &documents=`[1,4,3,5,212,23,44]` &extenders=`customsort` ]] You should […] Read more»