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
In the AOT, expand the Forms node.
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.
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.
Right-click the form and click Save.
Example: Using a country/region specific menu item
In the AOT, expand the Menu Items node and expand the Display node.
Find and right-click the blocklistTable_IT menu item to open the Properties window.
Find the CountryRegionCodes property and notice that its ISO code value is set to IT.
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 blocklist 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 blocklist report.
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.