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 (24.3.0.1000)
Syntax
void SetDefaultTimeDimension(
	Guid projectId,
	Guid? defaultTimeDimensionId
)

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
ExceptionCondition
ArgumentExceptionprojectId 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).
InvalidSessionExceptionThe 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