Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
Dynamically configured PivotGrid...
posted

Hey folks,

First of all, would just like to say I have been extremely impressed with these forums and the help I've received here -- it has really helped to illuminate the full flexibility of the product.  Thanks everybody!

Okay, here is my next question, which is a bit broad in scope: What we really need to be able to do with Pivot Grid is have it dynamically configured based on an XML file (of our own design) so that our support team can quickly configure a cube for each customer without touching C# code.  Specifically, we need to be able to configure Pivot Grid in three different "dimensions" that need to be dynamically loaded, which is to say, changeable via some kind of configuration file rather than a re-compile of C# code.  Right now, the only Pivot Grid examples I've seen show the cube dimensions and calculations bound to the methods, properties and structure of a statically compiled C# object model.  This is very cool, but the problem is that it is fixed at compile-time.

I need to be able have the cube load based on an XML file that dynamically specifies dimensions to load, expressions that lay behind certain calculated fields, and expressions that lay behind certain aggregators.

Right now, the only approach I can think of (which I'm willing to do if all else fails), is to use reflection to dynamically construct my data-binding classes at runtime (based on this config file I'm talking about),  then incorporate some lightweight expression evaluator (http://flee.codeplex.com/) to parse and evaluate expressions embedded in the config file, which will represent either calculated dimensions, or custom aggregators.

Thoughts?  Is this the only possible approach or is there something simpler that is already part of the framework?

-Jesse

Parents Reply Children