How You Search Geographies in the Language You Prefer

You can search geographical data using the language that you prefer.

For example, when you load geography data for Canada in English and French. When you search this data using say Postal Code H4A 0A1, the following is the search result:

When you search this data using say Postal Code H4A 0A1, the following is the search result:

  • H4A 0A1, Montreal, QC

  • H4A 0A1, Montreal, Quebec

  • H4A 0A1, Montréal, QC

  • H4A 0A1, Montréal, Quebec

You may want the search results to be displayed in the language you prefer. So, if you set the language as English, the following must be displayed:

  • H4A 0A1, Montreal, QC

  • H4A 0A1, Montreal, Quebec

And if you set the language as French, the following must be displayed:

  • H4A 0A1, Montréal, QC

  • H4A 0A1, Montréal, Quebec

This can be done after setting up the profile option Filter Geographies Using User Language (HZ_GEO_FILTER_BY_USER_LANG). You must first define the profile option HZ_GEO_FILTER_BY_USER_LANG and specify the language you want to use.

  1. Create the profile option as follows:

    1. Click Navigator > My Enterprise > Setup and Maintenance > Search and search for Manage Profile Options.

    2. Click Create new profile option icon and enter the following:

      • Profile Option Code: HZ_GEO_FILTER_BY_USER_LANG

      • Profile Display Name: Filter Geographies Using User Language

      • Application: Trading Community Model

      • Module: Trading Community Model

      • Description: provide the description

      • Start Date: specify a date

    3. Click Save and close.

    4. In Profile Option Levels table, select Enabled and Updateable for the site level.

    5. Click Save and Close.

  2. Set the default value for the profile option as follows:

    1. Click Navigator > My Enterprise > Setup and Maintenance > Search and search for Manage Administrator Profile Values.

    2. Search HZ_GEO_FILTER_BY_USER_LANG as the profile option code.

    3. Add new Site level profile value.

    4. Specify the new profile in the following format:

      <COUNTRY_CODE1>:<GEOGRPHY_LEVEL1>, <GEOGRAPHY_LEVEL2>;<COUNTRY_CODE2>:<GEOGRAPHY_LEVEL1>

      Where Geography Level values start with value 1 for country and increment for each level that's defined in the country's geography structure setup.

      For example, the following are the geography levels for Canada:

      Country - 1, State - 2, Province - 3, City - 4, Postal Code - 5

      Similarly, the following are the geography levels for United States:

      Country - 1, State - 2, County - 3, City - 4, Postal Code - 5

      Example 1: If you want to filter data for Canadian Cities, then the profile value is CA:3 where CA is the country code for Canada and 3 is geography level value for City.

      Example 2: If you want to filter data for both State and Cities for United States, then value should be US:2,4

      Example 3: If you want to filter data for multiple countries as given in both example 1 and example 2, then use semi colon as delimiter, like CA:3;US:2,4

    5. Click Save and Close.