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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

120642 Sep 30,2015 02:23 AM UTC Oct 1,2015 11:45 AM UTC JavaScript 3
loading
Tags: ejPivotClient
Dylan
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> 
 
<script>
// Create OLAP Client
$('#OlapClient').ejOlapClient({
      url: "OlapClientService.svc"
  });
var clientObj = $("#OlapClient").data("ejOlapClient");
clientObj.cubeChanged(ej.proxy(function(){}, this));
// raised while changing cubes
</script>

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.

http://www.syncfusion.com/downloads/support/forum/120642/ze/WebApplication41778845769

Regards,

Ramesh G.

Dylan
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?

Thanks

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#]:

OlapReport:

       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.


Regards,

Ramesh G.


CONFIRMATION

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.

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

;