Hi Paul,
Here is a sample you can start with.
using(SPSite site = new SPSite(http://localhost;))
using (SPWeb web = site.OpenWeb())
{
ListSPField fieldsList = new ListSPField();
SPFieldCollection fieldsCollection =
my bad, I missed actual condition,
foreach (SPField field in fieldsCollection) {
if (field.Filterable) {
Console.WriteLine(field.Title);
fieldsList.Add(field);
:) Great. That's exactly what I was after. Thank you!
One more question surrounding using. Whenever I use using I get web part
errors saying that the data has already been disposed. This usually occurs when
trying to edit the web part properties.
As a result, I now just do the folowing but am
You will not need to dispose SPContext,
As a general rule if we create an object only then we dispose it..
On Fri, Nov 4, 2011 at 11:35 AM, Paul Noone
paul.no...@ceosyd.catholic.edu.au wrote:
Damn. I may need to trim that even further. J
Suggestions?
Incidentally, I am
Has anyone else noticed issues with the RTE toolbar and IE9?
Looks like a recent Windows Update has buggered it completely.
When using [cid:image002.png@01CC9AE2.45117480] we can't even add text to the
field.
Using Compat View and IE7 Standards we can add text but controls do not load,
and the