Component Service Type

This service type enables you to create a ComponentSelectionChanged function type in a dashboard extender rule within assemblies. You can do this by selecting this service type or by selecting the Dashboard Extender business rule type. These rules are typically used to perform custom tasks within Workspaces. Developers often use this dashboard extender rule as it handles all actions occurring because of interactions with dashboard components, such as grids or combo boxes. These rules are referenced in the action properties of a given component.

Create the service factory assembly file and then the component service assembly file. Then, uncomment the appropriate lines of code. The following example is in C# with the service factory assembly file with the lines for the Component service uncommented.

NOTE: The file name must match the name of the returned function in the service factory file.

Sample Service Factory with an component service type that has a yellow highlight line on lines 43-44.

Configure the component service assembly file with the following options:

  • In the File Name field, enter a name for the file, for example, WsasComponent.

  • In the Source Code Type drop-down menu, select Component Service.

  • In the Compiler Action drop-down menu, select (Use Default).

    NOTE: For the Compiler Action options, Disable ignores the file when the assembly is compiled. (Use Default) is the same as Compile.

Component Service selected from Source Code Type in Add File dialog box

The following example is an assembly file that is operating the two highlighted icons in the dashboard:

Example of an assembly file with two highlighted icons in dashboard with a yellow highlight around the randomize and reset icon.

The Randomize icon fills the labels with random values, while the second icon resets the values to their original state. The logic, populated within the assembly file, runs when you select a button.

Component Properties panel showing configuration options for the btn_SetRandomValues button component.

To reference this object, use this syntax: {WS}{FunctionName}{Parameter1=Value1}

To use the assembly service on the maintenance level, use this syntax: {WSMU}{FunctionName}{Parameter1=Value1}