XFBR String Service Type

This service type enables you to create an XFBR String within assemblies. You can do this by selecting this service type or by selecting the Dashboard String Function business rule. These rules are generally used to create effects similar to parameters and substitution variables but allow greater flexibility by using code to return string values in dashboards, Cube Views, and Extensible Documents.

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

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

Sample Service Factory with a XFBR service type that has a yellow highlight line on lines 26-27.

Configure the XFBR String service with the following options:

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

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

XFBR String Service selected from Source Code Type in Add File dialog box

The following image is an example of an assembly file returning a page caption in a dashboard. This is commonly used to query an object or to create a dynamic page caption.

Yellow box highlight on Dynamic Advanced Filters.

This assembly is then referenced in the Page Caption of the dashboard.

The Page Caption of the dashboard displaying the assembly file returning a page caption.

To reference this object, use this syntax: XFBR(WS,FunctionName)

To use the service through a service factory defined in the maintenance unit properties, use this syntax: XFBR(WSMU,GetRandomText)