Display the format US phone number - best practices
JDeveloper 12.1.3
-Telephone table has field VARCHAR2 with phone numbers. All records have exactly 10 numbers (characters) length
-In the user interface, I want to show number xxx-xxx-xxxx, that is to say with af:outputText or similar device
-observe that I am looking for display, and no to entry/edit phone number
-in search of best practices
What I did but am not satisfied:
-In the t 3 has created a transitional attributes with the default SQL string. For example:
Phone1To3: substr (Phones.Phone, 1, 3)
Phone4To6: substr (Phones.Phone, 4, 3)
Phone7To10: substr (Phones.Phone, 7, 4)
Then in file jsff (the table component):
<af:outputText value="#{row.Phone1To3}-#{row.Phone4To6}-#{row.Phone7To10}" shortDesc="#{bindings.Phones.hints.Phone.tooltip}" id="ot2222"/>
Another way (better, easier)?
In my view, that the best practice is to do your own converter in this case you will not need transitional attributes as you did. After doing a converter, you can add this converter inside outputText inputText. .. to display the required format
To find out how a converter, you can check this url
Sameh Nassar: Create custom converter
Tags: Java
Similar Questions
-
I have a request for a phone number in my HTML code in my database which is automatically filled with the correct sales phone number when sending emails. I create HTML code in dreamweaver and then put the code in my e-mail program. I need to make the phone number in the clickable query. I know the code to do it well not in a query. What is the code?
As far as I saw, most of the smartphones will automatically recognize it these days, as long as the number is written in a format of regular phone number. This format also allows to make images or text other than a telephone number in a tap to call the link.
Looking at what you have presented I guess it would be something along the lines of...
When the location of the link and the link text would be the same variable.
I've never worked with Intelliclick so above is a wild guess. They would be those who need to ask themselves if there is a way to fill in the address of a link like that.
-
Why teststand cannot display the ASCII character which number up to 128?
Hi all
I encountered a problem on an application for ASCII characters, why teststand cannot display the ASCII character which number up to 128?
For example: an expression Local.xx = Chr (164).
XX--> chain, can't do the correct string.
An idea for this?
OS: WinXP, SP1 Teststand2012.
Thank you very much.
TestStand uses encodings multibyte code page, that you have defined for the operating system-based. If you are using a code page that requires multibyte characters, you should also make sure that you have the Options of Station-> location-> parameter Regcognize multi-byte characters is enabled.
On Windows 7, at least, the code page of the operating system setting is located in the control panel "Region and language" in the "Administration" tab where it says "language for non-Unicode programs".
Hope this helps,
-Doug
-
Validate / Format of phone number with Extension
I am trying to allow users to enter a phone number, with the POSSIBILITY of adding an extension at the end, but I can't seem to get the good coding...
Thus, users should be able to type the following:
5555555555
555-555-5555.
(555)555-5555
555-555-5555
As well as
55555555551234
1234 5555555555
555 555 5555 1234
555-555-5555 1234
And they should all validate/format:
555-555-5555 ext (number of optional expansion)
5 years and 1234 s are only examples.
I tried to use a mask of arbitrary, but you are unable to view OPTIONAL characters method... they want to all be necessary therefor 9999999999 ext9999 eventually REQUIRE a 4-digit extension.
Thanks in advnace for your help
It can be done using a custom size validation script.
-
I want to turn on two factors of authentication to my iCloud, however cannot find the South Korea in the list of countries.
Is there a solution to complete setting up authentication to two factors in Korea?
I have seen this problem before coming, and I think that you will have to contact the Apple Support on this subject. When I click on change my phone numbers of trust and then click Add another phone number, it's the list, I get:
You are on the site Apple - my Apple ID ? What OS X running on Mac? What browser do you use? Have you tried another browser?
See you soon,.
GB
-
How to disable the recognition of phone number on a mac
When I type the 10-digit numbers in calendar events, Notes, and I think other places, they become a link that opens FaceTime, whenever I click on them (for example, to make a correction). None of them are still phone numbers. I have not and do not want to use applications that exhibit this behavior. How can I disable it on my Mac, so no numbers are never treated like phone numbers, unless of course they are entered into a field which is expressly defined as a phone number (for example in Contacts)?
I don't think there is a way to disable this option, although there might be a way through the commands from the Terminal.
To edit the recognized text auto, long - click on the text.
-
Hi has received as a result of sms today 30/09/2011
"Good news!" Your numbers ohone hs wins 750,000.00 GBPonds in Mozilla Firefox phone number attract to the United Kingdom to request, via email only to:
[email protected] ".
Please confirm that this is a scam and be aware.
Thank youThis is what we call hoax/scam as a similar earlier it did not appear in http://blog.gerv.net/2011/08/hoax_mozilla_firefox_online_promo/
-
BlackBerry Smartphones Facebook 1.5 - connect contact initiates the request for phone number
Hello
Just installed Facebook 1.5 on my Curve 8900 and I am trying to manually link some FB friends to the contacts of BB. Whenever I do this it sends a request to the FaceBook friend's phone number when it connects to them. Does anyone know of a way I can turn this option off? I want to just connect, not request a phone number, otherwise I would have chosen the option "request phone!
Thank you
DOM
Yes, the 1.5.0.32 FB version corrects this problem.
-
need the customer support phone number
Hi, I need to talk with the help of Adobe Acrobat DC and cannot find the phone number. Someone at - the number?
Hi Susan,.
You have posted in the forum of Digital Publishing Solution that is not related to Acrobat DC. I found the following link however to help get help with Acrobat DC: https://helpx.adobe.com/contact.html?step=APRO-APAP-APCC-ACRO-CPDF-ECHP-acrobat.
Neil
-
How to display the VM Workstation serial number
I have 6 licenses for Workstation 6 and you just upgrades to version 7. I am trying to determine what user runs a number of series. I have 3 users right now and they have no idea who install package that they used. How to display the serial number for VM Workstation installed on a users computer.
Thank you
He stored in the Windows registry at the location following and Workstation 7 taking as example adjust you the path accordingly for the installed version.
HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Workstation\License.ws.7.0.e1.200904\Serial
-
Measurement on the side time server? Best practices for the turn-based game
Hello
What would be the best practice for measuring time in a turn based game?
I was looking at the timeout of the room, but to use that it would mean that, for each round, I put users in a new room?
Is there a way where I can measure time serverside and keep users in the same room?
If so, I could use php, otherwise, we would need java that allows to measure a time race.
See you soon,.
G
Hello
You can definitely use PHP or Java - we provide integration of server
libraries for either. I don't know exactly what is the use case, so I can't
comment on what makes the most sense, but if it is not information which must be
totally secure, grading on the client can be a viable approach also.
Nigel
-
How to display the date (instead of number) along of there axis of column chart?
Hello
I have a requirement in which I need to display the date on the projects along the x axis and y Axis. It is essentially a graph of milestone. Something like this:
Here is my code:
< mx:ArrayCollection id = "acProjects" >
< mx:Object PROJID = 'A1' projDesc = 'Execution of Civil engineering works' plandate = '2009-12-23' actualdate = "2009-11-25" / >
< mx:Object PROJID = "A2" projDesc = 'Installation of equipment' plandate = '2010-02-15' actualdate = "2010-03-25" / >
< mx:Object PROJID = 'A3' projDesc = 'Comissioning of Equipment' plandate = '2010-05-30' actualdate = "2010-06-15" / >
< mx:Object PROJID = 'A4' = 'Transfer to regular use' projDesc plandate = "2010-04-23" actualdate = "2009-03-30" / >
< / mx:ArrayCollection >< mx:ColumnChart id = "columnchart1" width = "100%" height = "100 percent" color = "black" dataProvider = "{acProjects}" >
< mx:horizontalAxis >
< mx:CategoryAxis categoryField = "projDesc" / >
< / mx:horizontalAxis >
< mx:series >
< mx:ColumnSeries displayName = "Date" xField = 'projDesc"yField ="plandate"/ >
< / mx:series >
< / mx:ColumnChart >But with this code, I get something like this:
In general, by default, the y-axis is always numbered. Is there a way where we can change to display date?
Appreciate your help...
-Deepak
Use the DateTimeAxis:
http://livedocs.Adobe.com/Flex/3/langref/MX/charts/DateTimeAxis.html
-
[HELP] Read the Mobile SIM phone number?
I already looked through all the API here. https://developer.BlackBerry.com/native/reference/Cascades/device_and_communication_radio_and_sim.ht...
And you can't find any API to get the SIM card number. Anyone know please share?
QString value;
BB::System:: telephone;
BB::System:: line = phone.activeLine ();
value = line.address ();
The code above works for me when not on a call in progress.
-
TO_char error - number mask format - need phone number format
Hi all
I got a stuck in something fundamental. my contribution will be number (say 1 to 9999999999) I want to be filled in this format (999-999-9999). I tried the sub query, it does not help me.
Select double to_char(1234567890,'999-999-9999');
Please tell me which function is more suitable for this.
my entry can be a single digit also, but my output should be ten-digit (ie: if I gave 1, o/p should be 000-000-0001)
kindly help me.
Thank you
Jeevanand.KTry something like this:
sql> select to_char(1234567890,'000G000G0000', 'nls_numeric_characters=''.-''') from dual; TO_CHAR(12345 ------------- 123-456-7890
-
Detailed WebApp {tag_description} does not display the formatted HTML input
Layout of Web App detail {tag_description} does not display formatting HTML entered in the content of the element. How to view with jumps of paragraph etc.?
Liam,
It turns out that the details of the page has a
pair of tag around the {tag_description} that is casuing the problem.
Thanks for your help.
See you soon
ROX
Maybe you are looking for
-
Quality mediocre speaker Tecra R10 - 10A
HelloI just bought a tecra r10-10 has fills perfectly. My only complaint is an * extremely poor sound quality * fate of built-in speakers. I can't complain for lack of low frequencies, which is inevitable for this size, but distortion of severe clipp
-
T8100 keyboard, some keys don't have or cause menus to open
Because of virus, worm, or something bad, I did a full reformat and load of XPpro. Seemed to work fine, but I found that the letter 'L' has not worked. Drivers loaded from a CD, eBay but still no 'L '. Reform and reload OS and now the letter 'U' does
-
Centralization of data - MacBook Air, iPhone 3, PC and laptop
I have a MacBook Air (250 GB), PC (500 GB + 2 to), portable and 3 iPhones to deal with. My music, movies and family photos/videos are all spread on all devices. I like my MacBook, but it was a gift from my wife and she got just the 250 GB model. Try
-
I need to know if I can do something to get properly applied statistics, including the free cells. [Moved from the community centre of Participation]
-
I got in trouble for centuries with this update. I am running Vista Business SP1, MS Office 2007 SP1 and Viewer powerpoint 2007 SP1 on my machine. I tried the update and uninstall also the spectator PP I have seen elsewhere that it may be the problem