Assigning a resource key to a report parameter
You can localize the following items associated with a report parameter:
*The text that prompts report users to supply a value for a report parameter
*The help text provided for a report parameter
*The static values displayed in radio buttons, a list box, or a combo box
Figure 29‑14 shows the dialog box, Enter Parameters, that displays report parameters to the report user. The figure also identifies the text that you can localize, including prompt text and values that appear next to radio buttons and in the list boxes. In Enter Parameters, a report parameter’s prompt text appears next to the curly braces symbol, { }.
Figure 29‑14 Text that can be localized in Enter Parameters
How to assign a resource key to a report parameter prompt text or help text
These instructions assume that you have already created the report parameters and assigned a resource file to the report.
1 In Data Explorer, under Report Parameters, select the report parameter to localize. Do not double-click the parameter, which opens the Edit Parameter dialog.
2 In Property Editor, choose Localization.
3 To localize the report parameter’s prompt text, choose Browse, next to the Prompt text key field. To localize the report parameter’s help text, choose Browse, next to the Help text key field.
Select Key displays the current list of keys and values that are defined in the resource file that the report uses.
4 Perform one of the following steps:
*Select an existing key to assign to the report parameter.
*Under Quick Add, create a new key, choose Add, then select the key from the list.
5 Choose OK.
How to assign a resource key to a report parameter value
These instructions assume that you have created the report parameter that displays a list of values in a list box, combo box, or radio buttons. The values must be static. Values that are derived dynamically at run time cannot be localized.
1 In Data Explorer, under Report Parameters, double-click the report parameter that contains the values to localize.
2 In Edit Parameter, in the Selection values table, select the value to localize, then choose Edit. Edit Selection Choice appears. Figure 29‑15 shows an example of a radio button value (Shipped) selected for editing.
Figure 29‑15 A parameter value selected for editing
3 In Edit Selection Choice, choose the ellipsis (...) button next to the Display Text Key field. This button is enabled only if you have already assigned a resource file to the report.
Select Key displays the current list of keys and values that are defined in the resource file that the report uses.
4 In Select Key, perform one of the following steps, then choose OK:
*Select an existing key to assign to the report parameter value.
*Under Quick Add, create a new key, choose Add, then select the key from the list.
5 Choose OK to apply the key to the report parameter value.
In Edit Parameter, the Selection values table displays the actual value, the display value that the user sees, and the resource key mapped to the display value. Figure 29‑16 shows an example of a localized parameter value.
Figure 29‑16 The Selection values table in the Edit Parameter dialog displaying information about a localized parameter value
6 Repeat steps 2 to 5 to localize the remainder of the parameter values.