Slice settings
Slice settings (TfcxSlice):
function LoadFromFile(AFileName: String): Boolean;
Loads slice settings from a file. Returns True if the file has been successfully loaded.
The slice is reset before the load. If the loaded settings contain information about groups then the cube group settings are cleared before the load. If the loaded settings contain information about filters then the filter manager settings are cleared before the load. If the loaded settings contain information about charts then the chart settings are cleared before the load.
function LoadFromStream(ASliceStream: TStream): Boolean;
Loads slice settings from a stream. Returns True if the stream has been successfully loaded.
The slice is reset before the load. If the loaded settings contain information about groups then the cube group settings are cleared before the load. If the loaded settings contain information about filters then the filter manager settings are cleared before the load. If the loaded settings contain information about charts then the chart settings are cleared before the load.
procedure SaveToFile(AFileName: String; AStoreItems: TfcxItemsForStoreWithSlice = []);
Saves slice settings to a file. The AStoreItems argument sets which additional information is also to be saved (filters, groups, charts).
procedure SaveToStream(ASliceStream: TStream; AStoreItems: TfcxItemsForStoreWithSlice = []);
Saves slice settings to a stream. The AStoreItems arguments sets which additional information is also to be saved (filters, groups, charts).
Slice files can also contain group settings, filter settings and chart settings. Slice files are xml files with an mds extension by default.
Code examples:
fcxSlice1.LoadFromFile('c:\schema1.mds');
fcxSlice1.SaveToFile('c:\schema2.mds');
fcxSlice1.SaveToFile('c:\schema3.mds', [fcxiss_Filters, fcxiss_Groups, fcxiss_Charts]);