new module:crm/Format()
Extends:
Extends
Members
(static) address
Converts the given value using the provided format, joining with the separator character If no format given, will use predefined format for the addresses Country (or en-US as final fallback)
Format Description Example ------ ----------------------------------------- ----------------------- s Salutation (Attention, Name) ATTN: Mr. Bob S Salutation Uppercase ATTN: MR. BOB a1 Address Line 1 555 Oak Ave a2 Address Line 2 #2038 a3 Address Line 3 m Municipality (City, town, hamlet) Phoenix M Municipality Uppercase PHOENIX z County (parish, providence) Maricopa Z County Uppercase MARICOPA r Region (State, area) AZ R Region Uppercase AZ p Postal Code (ZIP code) 85021 P Postal Code Uppercase 85021 c Country France C Country Uppercase FRANCE | separator as defined by separator variable
(static) addressCultureFormats
Address Culture Formats as defined by crm.Format.address http://msdn.microsoft.com/en-us/library/cc195167.aspx
(static) countryCultures
Country name to culture identification http://msdn.microsoft.com/en-us/goglobal/bb896001.aspx
(static) formatByUser
Takes a string input and the user name to First amd Last name
Hogan, Lee
-> Lee Hogan
(static) formatUserInitial
Takes a string input and converts name to First amd Last initials
Lee Hogan
-> LH
(static) resolveFirstLast
Takes a string input and the user name to First amd Last name
Hogan, Lee
-> Lee Hogan