Jump to content
Software FX Community

How to used the OLAP Extension


ehuynh
 Share

Recommended Posts

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()

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...