How to: Set a Form Control to be Country/region Specific

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

You use the CountryRegionCodes property of the control to list the ISO codes of the countries/regions where you want the control to appear. If the value of the property matches the value of the controlling party, the control will be displayed. Typically, you use legal entity, vendor, customer or bank as the controlling party. The list of ISO country and region codes can be found here. For more information on controlling entities, ISO codes, and controlled entities, see Applying Country Specific Functionality.

To set the CountryRegionCodes property

  1. In the AOT, expand the Forms node.

  2. Find and expand the form that contains the control you wish to make country/region-specific. Expand Designs, expand Design, and then add or find the control.

  3. Right-click the control, and then click Properties. Use the Properties window to set the CountryRegionCodes property. You can add as many ISO codes as required via a comma-separated list.

    If the ISO code value of the CountryRegionCodes property does not match the ISO code value of the controlling party, the control is not displayed. If the values match, the control is displayed.

  4. Right-click the form and click Save.

Example: Using a country/region specific menu item

  1. In the AOT, expand the Menu Items node and expand the Display node.

  2. Find and right-click the BlackListTable_IT menu item to open the Properties window.

  3. Find the CountryRegionCodes property and notice that its ISO code value is set to IT.

  4. Open the application workspace and click General Ledger > Reports > External. If the country/region context of the controlling party contains the IT ISO code, the Italian black list report menu item displays on the client. If the country/region context of the legal entity is not set to the IT ISO code, the menu item will not display. The following illustration shows the menu item that appears when the country/region context of the legal entity matches the country/region context of the menu item for the Italian blacklist report.

    Italian black list report menu item display

See also

Applying Country/region Specific Functionality

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.