catalog

Gets or sets the current catalog name.

Parameters

name String

The name of the catalog.

Returns

String—The current catalog name.

Example - set the catalog

<script>
var dataSource = new kendo.data.PivotDataSource({
  type: "xmla",
  columns: ["[Date].[Calendar]"],
  transport: {
    read: "https://demos.telerik.com/olap/msmdpump.dll"
  },
  schema: {
    type: "xmla"
  }
});

dataSource.catalog("Adventure Works DW 2008R2");
</script>

Example - get the catalog name

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

var catalogName = dataSource.catalog();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(catalogName);// prints "Adventure Works DW 2008R2"
</script>
In this article