IProjectServiceSetDefaultTimeDimension Method |
Sets the default time dimension to use for a project.
Namespace:
Dundas.BI.FileSystem
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
Syntaxvoid SetDefaultTimeDimension(
Guid projectId,
Nullable<Guid> defaultTimeDimensionId
)
Sub SetDefaultTimeDimension (
projectId As Guid,
defaultTimeDimensionId As Nullable(Of Guid)
)
void SetDefaultTimeDimension(
Guid projectId,
Nullable<Guid> defaultTimeDimensionId
)
abstract SetDefaultTimeDimension :
projectId : Guid *
defaultTimeDimensionId : Nullable<Guid> -> unit
Parameters
- projectId
- Type: SystemGuid
The ID of the project. - defaultTimeDimensionId
- Type: SystemNullableGuid
The ID of the time dimension, or to use the global default.
Exceptions| Exception | Condition |
|---|
| ArgumentException | projectId or defaultTimeDimensionId is Empty.
|
| InvalidOperationException | defaultTimeDimensionId corresponds to an entry which is not a time dimension. -or- projectId is GlobalProjectId and defaultTimeDimensionId
is .
|
| NotFoundException | The specified project or time dimension was not found. |
| NoPrivilegeException |
The caller does not have sufficient privileges to set the default time dimension (see remarks).
|
| InvalidSessionException | The caller context is not associated with a valid session. |
Remarks
The caller is allowed to set the default time dimension on a project if any one of the following is true:
- The caller is a system administrator.
- The caller is a tenant administrator and the specified project belongs to the caller's tenant.
- The specified project is a User Project owned by the caller.
- The caller has the FullControl privilege on the specified project.
See Also