フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Dave Weitzel
Breaking us phone numbers into parts
2013/09/18 5:41
答え

Dave Weitzel

ランク: Regular Member

投稿: 203

参加年月日: 2009/11/18

最近の投稿

Is there any easy way of retrieving the three parts of a 10 digit US phone number?
Paypal requires the phone number t be sent as three separate parts when a USA number but I cannot work out how to do this from the lIferay API and use of phoneNumberFormats. For instance will liferay always store as (123)-456-7890 if 10 digits provided or 456-7890 if only 7?
If so I can easily process those strings!
Ahmed Hasan
RE: Breaking us phone numbers into parts
2013/09/18 7:20
答え

Ahmed Hasan

ランク: Expert

投稿: 306

参加年月日: 2007/04/13

最近の投稿

Hi Dave,

I feel this is nothing to do with Liferay. You can split the string that is stored in the database as 10 digits and show them on the front-end the way you want using NumberFormat utility.

Yours truly,
Ahamed Hasan
Author, Liferay Portlet Cookbook
Jack Bakker
RE: Breaking us phone numbers into parts
2013/09/18 8:54
答え

Jack Bakker

ランク: Liferay Master

投稿: 840

参加年月日: 2010/01/03

最近の投稿

you might like this http://code.google.com/p/libphonenumber/