Data Set Service Type

This service type enables you to create Data Set logic within assemblies. You can do this by selecting this service type or by selecting the Dashboard Data Set business rule type. These rules are usually queries and return data to data adapters and parameters using a method query.

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

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

Code snippet of a Service Factory Assembly file with lines 37-38 for the Data Set Service uncommented and highlighted in yellow.

Configure the Data Set service with the following options:

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

  • In the Source Code Type drop-down menu, select Data Set 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.

Add File dialog box displays fields to create a new source file, with File Name set to WsasDataSet, Source Code Type set to Data Set Service, and Compiler Action set to (Use Default). OK and Cancel buttons at the bottom.

The following example is an assembly file that creates a grid of potential values you might see based on a selection. The assembly file activates when you select an icon.

Sample of an assembly file that creates a grid of potential values based on a selection with a yellow square highlighting the activate icon.

This runs through a method query data adapter that populates the grid component.

Workspace displays a selected Data Adapter named grd_GetDistinctValuesForField. The properties panel displays General, Processing, and Data Source settings, including a Method command type with a query that calls {WS}{GetDistinctValuesForField}{FieldName=[|!SelectedFieldName!]} and returns results to a table named DistinctValues.

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

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