Edit this page

transport Object

The configuration used to load data items and discover schema information.

transport.discover Object |String |Function

The configuration used when the data source discovers schema information about the current cube.

The data source uses jQuery.ajax to make a HTTP request to the remote service. The value configured via transport.discover is passed to jQuery.ajax. This means that you can set all options supported by jQuery.ajax via transport.read except the success and error callback functions which are used by the transport.

If the value of transport.discover is a function, the data source invokes that function instead of jQuery.ajax.

If the value of transport.discover is a string the data source uses this string as the URL of the remote service.

If the value of transport.discover is omitted the data source uses transport.read for schema discover.

Example - set the discover remote service

<script>
var dataSource = new kendo.data.PivotDataSource({
  type: "xmla",
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2",
        cube: "Adventure Works"
    },
    discover: "https://demos.telerik.com/olap/msmdpump.dll",
    read: "https://demos.telerik.com/olap/msmdpump.dll"
  },
  schema: {
    type: "xmla"
  }
});
dataSource.schemaDimensions().done(function(dimensions) {
  console.log(dimensions.length);
});
</script>

transport.connection Object

The configuration used for setting connection options.

transport.connection.catalog String

The catalog name.

Example - set the connection catalog name

<script>
var dataSource = new kendo.data.PivotDataSource({
  type: "xmla",
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2"
    },
    read: "https://demos.telerik.com/olap/msmdpump.dll",
  },
  schema: {
    type: "xmla"
  }

});
</script>

transport.connection.cube String

The cube name in the current data source.

Example - set the cube catalog name

<script>
var dataSource = new kendo.data.PivotDataSource({
  type: "xmla",
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2",
        cube: "Adventure Works"
    },
    read: "https://demos.telerik.com/olap/msmdpump.dll",
  },
  schema: {
    type: "xmla"
  }
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy