Export (0) Print
Expand All

How to: Change the Printed Values of Boolean Variables

Microsoft Dynamics Nav 2009

In a Classic client report layout, when a Boolean value appears on a report, the value is printed as "yes" or "no" in the target language. In a client report definition (RDLC) report layout, when a Boolean value appears on a report, the value is printed as "true" or "false" in the target language.

In some cases, you may want to change the printed value of a Boolean variable in an RDLC report layout to "yes" or "no" instead of "true" or "false." For example, you may want RDLC report layouts to use the same wording as the reports that you designed in a previous version of Microsoft Dynamics NAV. You may also have Classic and RDLC report layouts and require the same wording in both layouts.

Before you begin this procedure, you must create a layout suggestion for the report. For more information, see How to: Create a Layout Suggestion.

To change the printed value of a Boolean variable

  1. In the Classic client, on the Tools menu, click Object Designer.

  2. In Object Designer, click Report, select the report for which you want to change the printed values of Boolean variables, and then click Design.

  3. On the View menu, click Sections.

  4. Right-click the text box that displays a Boolean variable, and then click Properties.

  5. In the Properties window, in the SourceExpr field, change the BooleanVariable to FORMAT(BooleanVariable).

  6. In the Properties window, in the Caption field, enter the value for the caption of the variable.

  7. On the File menu, click Save.

  8. In the Save window, select the Compiled check box, and then click OK.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft