How to display a string label instead of an integer representation of a radio group in Microsoft Dynamics GP
Article
This article describes how to display a string label instead of an integer representation of a radio group in Microsoft Dynamics GP.
Applies to: Microsoft Dynamics GP Original KB number: 926393
Introduction
A setting that you configure by using an option isn‘t stored in a table in Microsoft Dynamics GP.
Note
Options are also known as radio buttons.
The setting is stored as an integer that represents the selected option. This integer is known as a radio group. If you want to display the value of an option, you can use the integer value that is based on the position of the selected option in the tab sequence. The first position has a value of 0, the second position has a value of 1, and so on. If you want to convert a setting that you configure by using an option into a string representation, use the RW_Token user-defined function. However, because the RW_Token function expects an integer that starts with a value of 1, you must create a calculated field that adds a 1 to the integer value. To create this calculated field, follow these steps.
Step 1: Back up the Reports.dic file
Back up the Reports.dic file if you have any modified Microsoft Dynamics GP reports. To do it, follow these steps:
On the Tools menu, point to Setup, point to System, and then select Edit Launch File.
If you're prompted for the password, type the system password.
In the Edit Launch File window, select the product for the report that you want to modify. Note the path that appears in the Reports box.
Select OK to close the Edit Launch File window.
Step 2: Open Report Writer
On the Tools menu, point to Customize, and then select Report Writer.
Use the appropriate step:
In Microsoft Dynamics GP 9.0, select Microsoft Dynamics GP in the Product list, and then select OK.
In Microsoft Business Solutions - Great Plains 8.0 and 7.5, select Great Plains in the Product list, and then select OK.
Step 3: Modify the report
Open the report layout of the report that you're modifying.
In the Toolbox window, select Calculated Fields in the Resources list, and then select New.
Type a name for the calculated field in the Name box.
In the Resources list, select the table for the radio group field that you want to modify. In the Field list, select the radio group field that you want to convert, and then select Add.
Select the plus sign.
Select the Constants tab, and then select Integer in the Type list. In the Constant field, type 1, and then select Add.
Select OK.
Select New, and then type a name for the string field.
In the Result Type list, select String. In the Expression Type list, select Calculated.
Select the Functions tab, and then select User-Defined.
In the Core list, select System. In the Function list, select RW_Token, and then select Add.
Select the Constants tab. In the Type list, select String.
In the Constant field, enter the list of strings, and then select Add. Separate the strings by using a token character.
In the Constant field, enter the same token character, and then select Add.
Select the Fields tab, and then select the calculated field that you created.
Select Add.
Select OK.
Drag the new calculated field into the report.
Note
The following examples are some sample calculated fields:
For more information, see the Report Writer Programmer's Interface document in the Software Development Kit (SDK). You can install the SDK from the Tools folder of CD2 of the Microsoft Dynamics GP installation CDs.
Step 4: Grant security to the modified report
To grant security to the report, use one of the following methods.
Method 1: Use the Advanced Security tool
On the Tools menu, point to Setup, point to System, and then select Advanced Security. If you're prompted for the password, type the system password.
Select View, and then select by Alternate, Modified and Custom.
Expand Microsoft Dynamics GP or Microsoft Great Plains, expand Reports, expand the node for the appropriate series, and then expand the node for the report that you modified.
Select Microsoft Dynamics GP (Modified) or Microsoft Great Plains (Modified), select Apply, and then select OK.
Note
By default, the current user and the current company are selected when you start the Advanced Security tool. Any changes that you make are for the current user and for the current company. However, you can select additional users in the User area of the Advanced Security window. You can select additional companies in the Company area of the Advanced Security window.
Method 2: Use Microsoft Dynamics GP security
On the Tools menu, point to Setup, point to System, and then select Security. If you're prompted for the password, type the system password.
In the User ID list, select the user ID of the user who will access the report.
In the Product list, select the product for the report that you modified.
In the Type list, select Modified Reports.
In the Series list, select the series for the report that you modified.
In the Access List box, double-click the report that you modified, and then select OK. An asterisk appears next to the report name.
Do you want to learn how to make your reports multilingual in Microsoft Dynamics 365 Business Central? In this module, you'll learn how to generate a report in the language of the user or the recipient.
Describes a problem in which a third-party customization is still triggered although a user is unable to sign in to the company in Microsoft Dynamics GP. A resolution is provided.