One of the most common customisations outside of North America is changing the Phone Number Format. The North American default format of (XXX) XXX-XXXX Ext. XXXX is not always suitable for other countries.
For example: Australia, Singapore and Malaysia now use a domestic format of a 2 digit area code and a 8 digit phone number: (XX) XXXX XXXX. However, if the default phone formats for these countries were changed to this domestic format, you would not be able to enter international phone numbers. To compromise, I suggested a combined format of (XXX) XXXX-XXXX Ext. XXX which allows both domestic (2-4-4) and international (3-3-4) numbers to be entered. This format is now the default format for these countires. To enter phone numbers, you just need to press the space or right arrow to skip the digit not being used. This is discussed in more detail in the following Knowledge Base (KB) article:
How to enter an Australian domestic telephone number or an international telephone number in Microsoft Dynamics GP 9.0 (KB 920834)
So what happens when the default format for your country does not meet your requirements or your country does not have a standardised format. In these situations you will need to change the format to a different template or possibly "remove" the formatting entirely. The reason that I put "remove" in quotes is that it is better to replace the format with the appropriate number of X's than to actually remove the format string entirely.
The default keyable length for a phone number is 14, however at the storage length at the Dexterity level is 22, which means that the string can actually be a maximum of 21 characters. So not only can you change or "remove" the format, you can also increase the length up to 21 characters.
The format and data type used for the Phone 1 and Phone 2 fields are both named Phone_Number. The format and data type used for the Phone 3 field are both named Phone_Number3. Fax Numbers use the Phone_Number format, but the STR14_FAX data type.
The next sections will discuss how to make changes to various areas of the Microsoft Dynamics GP application.
You cannot change the phone format using Dexterity. While it is possible to make the changes to your development dictionary, as the format and datatype resources are part of the core Dynamics.dic (with resource IDs less than 22,000), they will not be extracted when you create a chunk file. This means your changes will work in Dexterity Test mode, but will not be deployed to the runtime environment via a chunk file.
Customization Site License
To make the change in the live application (runtime environment) you will need to use Modifier and Report Writer. You don't need to be registered for the Modifier, but you will need to be registered for the Customization Site License. If you are not registered for the Customization Site License, the changes made by the Modifier and stored in the Forms.dic will be ignored.
Note: The Customization Site License is included with the Modifier & VBA license, but can also be purchased separately. If you don't at least have the Customization Site License registered, you will be unable to change the phone format.
For a site which is registered for the Customization Site License, but not for the Modifier, the changes will have to be made by the partner by temporarily entering the partner's registration keys. This is because changes to formats, messages and data types are not transferrable using packages via Customization Maintenance and must be made on the actual system.
To change the Phone format for reports, use the following steps:
Note: To change the phone formats for windows, see the next section.
To change the Phone format for windows, use the following steps:
Note: To change the phone formats for reports, see the previous section.
SmartLists & the Letter Writing Assistant
Once you have made the changes to the format on the windows and the reports, you might notice that SmartList and the Letter Writing Assistant still use the old format. This is because they have to programmatically format the phone numbers and actually use a message resource to describe what the format looks like. This is because it is not possible to actually read the format from Dexterity code.
To change the Phone format for SmartList and the Letter Writing Assistant, use the following steps:
For more information see the following Knowledge Base (KB) article:
How to change the telephone format for SmartList and for Letter Writing Assistant in Microsoft Dynamics GP by using Modifier with Visual Basic for Applications (KB 921632)
I hope this information is helpful.
This is very important post for me, as most of the clients I have worked with wanted a Phone Format Change. The most important part of this post for me is Smartlist & LWA. I had never thought I could change the format in Smartlist also, falsely believing that Smartlist renders based on it's own field and format.
Thanks for changing that perception and teaching on how to change the format.
Thanks for this post, I can win over several clients' smiles now.
Posting from Mark Polino at DynamicAccounting.net
If i change the phone format on the server, does i need to do same thing for the client too?
The same change needs to be made at each workstation. If you have the same modified forms and reports on all workstations (recommended), you can just copy the forms.dic and reports.dic files from an already updated workstation.
Have a look at this article for a method of rolling out changes to all workstations:
Thanks David, the use of SmartLists is helpful.
PLEASE READ BEFORE POSTING
Please only post comments relating to the topic of this page.
If you wish to ask a technical question, please use the links in the links section (scroll down, on right hand side) to ask on the Newsgroups or Forums. If you ask on the Newsgroups or Forums, others in the community can respond and the answers are available for everyone in the future.