Let’s say you need to set a property that won’t exist at compile time, but will at runtime, say through the magic of runtime replacing of objects.
System.Reflection.PropertyInfo pi = someObject.GetType().GetProperty("SomeProperty");
pi.SetValue(someObject, "new value", null);
In VB.NET, much easier:
Object o = someObject
Lets say you have a webpart that could be loaded by any application, anywhere in the SharePoint farm.
First off, there are three broad strategies for moving SharePoint past the out-of-the-box experience.
In Browser Configuration.
If you export a “site definition” from sharepoint (from site settings, look and feel, save as site template), then go to the “site template gallery”, save the file. It is a .stp file, which if you rename to .cab, you can unzip it. I use 7z to unzip it there may be other ways. The file contains .000 files, which are C# files, there is a large manifest.xml file, which references to the .000 files, which I think are the “customized/unghosted” pages. All other pages and dependencies are referenced by entries in theses lists:
MetaInfo, Details, SiteFeatures, WebFeatures, Structure, Files, UserLists, WebParts.
Some of the above seem to have been serialized into the manifest file, some are obviously just pointers to things that the template expects to already exist in SharePoint.
There can also be large binary blobs in the file, which gives XML viewers and editors a hard time.
Using a Complete DVWP. Now that you’ve tried out the DVWP by creating and configuring one in SPD, how can it be used?
The DataSourceWebPart (DSWP) is a databinding webpart for XML source data, although it can use a SQLData source as well.
1. Double numbers means you don’t have a relationship set up in the “Diminsion usage” section.
2. Master detail relations are problably “Referenced Diminsions”, the master part will most likely
If you have a diminision made up of 3 tables (i.e. normalized hierarchial data) make sure the wizard creates one diminsion, not 3.
If you have referential integrity problems, read this article.