CasewareDocs

GetServiceById

Gets the service object with the specified ID.

Syntax

GetServiceById(ByVal serviceId as String) as Object

Parameter

serviceId

A string containing the ID of the service to get.

Return Value

If found, a reference to the service with the specified ID, otherwise nothing.

Available service IDs
Command Description
CirWizardPageSettingsService The ID of the WizardPageSettingsService interface. The service CirWizardPageSettingsService interface provides access to the settings objects of those Standard Import Routine wizard pages that can be customized.
CreateAuDSStandardTableTaskFactory The ID of the service CreateAuDSStandardTableTaskFactory interface. This service provides access to the properties and methods of a task that can create all Audicon data standard tables.
CreateStandardTableTaskFactory The ID of the service CreateStandardTableTaskFactory interface. This service provides access to objects that create the German Federal Ministry of Finance standard tables.
MacroDialogInvoker The ID of the MacroDialogInvoker interface. This service invokes a macro dialog.
RegisterTableForMppTaskFactory The ID of the RegisterTableForMppTaskFactory interface. This service provides access to the properties and methods of a task that can register a table with a multiple period data preparation task.

Example

'The following code retrieves a reference to the service with ID CirWizardPageSettingsService.

Dim pageSettingsService As Object

Set pageSettingsService = SmartContext.GetServiceById("CirWizardPageSettingsService")