The IsTemporary property of the Dimension interface indicates whether an object is temporary. Temporary objects are local to the session in which they are created, cannot be saved, and are not available to other users. To create a temporary dimension object, preface the name with the tilde (~) character.
clsAggregationDimension | clsDatabaseDimension |
clsCubeDimension | clsPartitionDimension |
Boolean
Read-only
A temporary object is not stored in the repository and is not available to other users. Temporary objects persist only during the session in which they are created unless renamed or cloned to another existing object having the same class type. Objects that are subordinate to a temporary object, such as levels for a dimension, internally inherit the parent object's IsTemporary setting.
Note Only temporary objects can be renamed by changing the Name property. Omitting the tilde character from the name of a temporary object means that it is no longer temporary preventing any subsequent renaming of the object. Also, executing the Update method of a temporary object has no effect. The object will not be saved to the repository until it is renamed without the tilde prefix.
'Assume an object (dsoCube) of ClassType clsCube exists
Dim tmpDim As DSO.Dimension
Set tmpDim = dsoCube.Dimensions.AddNew("~MyDim") 'Temporary
'Add levels, member properties, process, etc.
...
'This is something we want to keep - so drop "~"
tmpDim.Name = "MyDim" 'No longer temporary
tmpCube.Update
About Decision Support Objects | Using Decision Support Objects |
Properties Cross-Reference |