Jump to content
Software FX Community

Recommended Posts

Posted

I am new to the ChartFx OLAP and i'm trying to build an OLAP viewer where user can connect to the cube then select which dimensions and measures they wish to view. I looked at the quickstart guide which gave me the code below. However, I'm not sure how to set up the datasource (ds) to work. Any help would be appreciated.

connStr = "Provider=msolap; Data Source=**YourServerName**;Initial

Catalog=FoodMart 2000;"

ds = "SELECT {[store].[store Country].[uSA].Children} ON

COLUMNS,{CROSSJOIN(Descendants([Gender]),

Descendants([Time].[1997]))} ON ROWS From [sales]"

ADOMD1.Connect(connStr, ds)

Olap1.DataSource = ADOMD1

Chart1.Extensions.Add(Olap1)

Olap1.Refresh()

Posted

So I figured out how to use the OLAP wizard. My problem now is there a way of exposing the wizard in an application. i.e. Let the user chose the dimenions and measure at run time instead of writing a MDX query.

 Please and Thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...