Enabling Save and Save As for Analysis Views

Edit the "datasources.xml" file

There is a "datasources.xml" file located at "$PENTAHO/pentaho-solutions/system/olap/" In this file you point to the different cube schemas that are in your solution - this enables the "Save" and "Save As" functions.

See the XML snippet below for the sample datasources.xml file

In order for the Save and Save As function to work on the front-end the user that is navigating the view has to have 'write' priveleges to the directory that they are trying to save the file in

<?xml version="1.0" encoding="UTF-8"?>
<DataSources>
  <DataSource>
    <DataSourceName>Provider=Mondrian;DataSource=Pentaho</DataSourceName>
    <DataSourceDescription>Pentaho BI Platform Datasources</DataSourceDescription>
    <URL>http://localhost:8080/pentaho/Xmla?userid=joe&password=password</URL>
    <DataSourceInfo>Provider=mondrian</DataSourceInfo>
    <ProviderName>PentahoXMLA</ProviderName>
    <ProviderType>MDP</ProviderType>
    <AuthenticationMode>Unauthenticated</AuthenticationMode>
    <Catalogs>
        <Catalog name="SteelWheels">
            <DataSourceInfo>Provider=mondrian;DataSource=SampleData</DataSourceInfo>
			<Definition>solution:steel-wheels/analysis/steelwheels.mondrian.xml</Definition>
		</Catalog>
        <Catalog name="SampleData">
            <DataSourceInfo>Provider=mondrian;DataSource=SampleData</DataSourceInfo>
            <Definition>solution:steel-wheels/analysis/SampleData.mondrian.xml</Definition>
        </Catalog>
    </Catalogs>
  </DataSource>
</DataSources>


Creator: Zachary Zeus on 2009/08/10 12:25
XWiki Enterprise 1.7.2.16857 - Documentation