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.
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.
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.
This assembly is then referenced in the Page Caption of the dashboard.
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)