OLAPAttributeTable

To access the dimension's attribute tables, use the OLAPAttributeTable data type:

#define EngineVersion 2.0
#define RuntimeVersion 2.0

void PrintAttributeTableNames()
{
    OLAPConnection olapconnection = OLAPCreateConnection(
        "LOCAL/Application Engine", "Admin", ""
    );
    foreach (OLAPCube cube in OLAPGetCubeList(olapconnection))
    {
        WriteLine("Found cube " + OLAPGetCubeName(cube) + ".");
        OLAPDimensionList dimensions = OLAPGetDimensionList(cube);
        foreach (OLAPDimension dimension in dimensions)
        {
            WriteLine("Found dimension " + dimension + ".");
            OLAPAttributeTableList attributeTables = OLAPGetAttributeTableList(dimension);
            foreach (OLAPAttributeTable attributeTable in attributeTables)
            {
                WriteLine("Attribute table '" + OLAPGetAttributeTableName(attributeTable) + "':");
                foreach (OLAPAttribute attribute in attributeTable)
                {
                    WriteLine("\t\tAttribute " + attribute);
                }
            }
        }
    }
    OLAPDisconnect(olapconnection);
}

To initialize an OLAPAttributeTable object, you must use it in a foreach statement.

This data type is only available in engine versions 2.0 and above.