We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can i invoke the method cubeChanged passing the cube name to be loaded

Thread ID:





120642 Sep 30,2015 02:23 AM UTC Oct 1,2015 11:45 AM UTC JavaScript 3
Tags: ejPivotClient
Asked On September 30, 2015 02:23 AM UTC

hi, i know that this example below execute the method cubeChanged when loading the olap client, but how can i send the cube name to be loaded?

<div id="OlapClient"></div> 
// Create OLAP Client
      url: "OlapClientService.svc"
var clientObj = $("#OlapClient").data("ejOlapClient");
clientObj.cubeChanged(ej.proxy(function(){}, this));
// raised while changing cubes

Thanks in advance

Ramesh Govindaraj [Syncfusion]
Replied On September 30, 2015 11:21 AM UTC

Hi Dylan,

We have created a sample based on your requirement. Please find the following sample.



Ramesh G.

Replied On September 30, 2015 06:23 PM UTC

the example worked fine, but i still need to click the button, is there any other way to load a cube that is does not need to click any button?


Ramesh Govindaraj [Syncfusion]
Replied On October 1, 2015 11:45 AM UTC

Hi Dylan,

Yes, Cube could be loaded initially by setting the current cube name at OlapReport in server side (WCF Service). Please find the below code snippet for your reference.

WCF file path : <SystemDrive>:\Users\<username>\AppData\Local\Syncfusion\EssentialStudio\xx.x.x.xx\JavaScript\olapsamples\wcf\OlapClientService.svc.cs

Code snippet[C#]:


       private OlapReport CreateReport()


            OlapReport olapReport = new OlapReport() { Name = "Default Report" };

            //Cube name can be declared below

            olapReport.CurrentCubeName = "Adventure Works";

            //Your code here


Please let us know if you have any concerns.


Ramesh G.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon