HTML DB Format Phone/Fax Numbers

Within my htmldb application I have Phone/Fax # getting pulled from my table. The phone/fax number are formatted like this 2135589645. I would like them to be formatted this way, 213-558-9645. How can I do that in HTML DB?

You could possibly look at using the substr function to help with formatting
assuming you have a column named phone_number
select substr(phone_number,1,3)||'-'||substr(phone_number,4,3)||'-'||substr(phone_number,8,3) as formatted_number
from ...
you will run into problems if the number isn't long enough ie 10 digits. You could check with a length function and then decide how to print it
select case when length(phone_number) = 10 then
substr(phone_number,1,3)||'-'||substr(phone_number,4,3)||'-'||substr(phone_number,8,3)
else
phone_number
end formatted_phone
from(
select '1234567899' phone_number from dual
union all
select '123456789' phone_number from dual)
you may also want to look at the lpad function to pad out short strings
hth
chris

Similar Messages

  • ICloud you have the ability to NOT format phone numbers of contacts; this ability is not available on the contacts of iPhone. If I set-up a phone number in iCloud with NO parenthesis, ex. 123- 456-7899, then this format should be available on the iPhone

    In iCloud you have the ability to NOT format phone numbers of contacts; this ability is not available on the contacts of iPhone. If I set-up a phone number in iCloud with NO parenthesis, ex. 123- 456-7899, then this format should be available on the iPhone contact.

    That is correct is doesn't. Standardized formatting of phone numbers in the iOS app is more important because it supports contact from a variety of locations (gmail, hotmail, etc.). iCloud doesn't (not directly).

  • How does one format "phone numbers" using "Numbers"?

    Want all phone numbers to format as (555) 555 5555
    How is this done?

    Hi Thomas,
    The old Numbers will be on your computer unless you deleted it. Look in a folder called iWork '09 inside your Applications folder. Launch Numbers 2 (Numbers '09) and do what you used to do to create a Custom Cell Format. For example, you might want a nine-digit phone number to appear as (123) 456 789.
    Save that document. To protect it from Numbers 3.0, make a copy of that document with a different name. Ensure that both your original Phone Number documents are closed (to protect them from that bully Numbers 3.0). Then Open the copy in Numbers 3.0. The custom format will be listed in Format Inspector > Cell > Data Format
    Type a nine-digit number into any cell and format the cell with Format Inspector > Cell > Data Format > Phone Numbers.
    Note: copying a cell with Custom Format in Numbers 2 and then pasting into Numbers 3 does not work. The pasted cell ends up as Text, and the Custom Format is not added to the Data Format list.
    Regards,
    Ian.

  • Transaction BP: How to extend pop-ups for phone or fax numbers?

    HI,
    If you go to transaction BP to see the Business Partner data and you want to see the phone numbers (or fax numbers) of a BP you get a small pop up.
    In order to see several lines you must scroll down.
    In order to see the fields at the right (comments, etc.) you must scroll right).
    I did not find a way to extend the pop up i.e. to make it bigger so that I can see more lines and more columns.
    Does anybody know?
    Thanks in advance.
    Thomas

    Hi Vivek, for some reason the "warn me when websites try to redirect / reload" button was tagged. I have untagged it and the problem is now solved. Thanks for that.

  • Formatting phone number: how to get rid of (...)?

    I live in Romania, and Contacts incorrectly formats phone numbers of the type xxxx xxx xxx (10 digit, the national standard, out of which the first is zero) into (xxxx) xxx xxx, i.e. inserting brackets before the first and after the 4th digit respectively. This is wrong. The bug is seemingly banal, yet it has bad consequences: if phone numbers are exported to Android, some Android devices, not all, alas, cannot dial such numbers and the process is stopped. Well, this may be a bug in Android, nevertheless the problem exists.
    A workaround is to choose another country as standard, e.g. Czech Republic. It works, but only for numbers added from that/this moment on, it does not remove (...) from the existing numbers.
    Q: how can I remove those stupid brackets (....) from the existing phone numbers? I need a global solution, a script or something...
    I reported the issue to Cupertino but they seem to be extremely slow, I do not understand why. Those brackets are incorrectly inserted, the national standards specifies a 10-digit number, out of which the first is zero, which is removed in case of international calls, and the prefix is added.

    Self answer: I changed country at hazard to Czech Republic, and all the phone numbers have been meanwhile changed from the wrong format (xxxx) xxx xxx to the correct format 0 xxx xxx xxx
    Praise be to hazard settings.
    P.S. Yes, I marked myself with a green bingo.

  • Invoice output must be sent to two fax numbers

    Hi,
    My client needs to send the Invoice to two different fax numbers. Is this possible if we maintain two condition records with two different partner functions that have these two fax numbers?
    Any ideas will be appreciated...
    Thanks,
    Sree.

    check these links, I believ it was discussed here several times.
    Re: Smart form as a fax
    SAP Script to Fax a PO
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
    Sending Smartforms through Fax
    I meant you can either define 2 output types with different partners which have different numbers to send FAX OR which is more flexible I think - write some code in your print program for your output type which will either just fax your output (set device to TELEFAX and populate other tables to provide fiax number & so on...) or just grab your sapscript ouput and then fax it using code (something like CONVERT_OTF_AND_FAX function modlule).

  • Multiple Fax numbers

    Hi Gurus,
    Need to know your opinion on this particular situation and whether it is realistic.
    Vendor has 3 FAX numbers.
    When PO is outputted and Faxed, it should go on one particular number, if that number is busy or fax machine is not responding, then the PO should be outputted on the 2 nd fax number and machine and so on.
    Is this possible?
    Regards,
    Pankaj

    this is not possible.
    first thing is that you can maintain multiple fax numbers in a vendor master, but SAP takes only the first one, except you code some own logic in a user exit.
    When you create a PO, then the message is determined according to the message determination setup and condition records maintained in your system. 
    In that moment, just 1 fax number is taken to the message.
    after this the message is transferred from the purchasing application  to the fax appication.
    And only the fax application (transaction SOST) knows if the fax was succesfully sent or not. But the fax application has no option to check any master data for alternative numbers.
    the message is in a graphic format, it roughly has the information that the message is to be send by fax using number 12345, no information about a vendor number anymore.

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • Output of Report in HTML/HTMLCSS Format

    My application is developed in developer 6i & running on the web. When I take output of the report in HTML/HTMLCSS format the output is not perfect. There are many alignment problems.
    Some words mix with others.
    Can anybody advice me the solution of this problem.
    Thanks in advance
    Zulqarnain

    I have read that it is better to use PDF format of report, but I don't know if it is true ...

  • I have two cell phone, different numbers.  Each has their own apple id.  How can i merge them so apps on one show on the other but keep their emails addresses separate on their own phone?

    Have two cell phones, different numbers.  Each has their own apple id.  How can I merge them so apps purchased on one phone show on the other.  But.as each has their own email address, I want to keep these email addresses separate on their own phone?  Thanks.

    We do this in my family now.  We have one account for purchases, so it is used to share music and apps (I think that is in Settings/iTunes & App Stores).  Each iDevice has this configured.
    Then, each of us has our own iCloud account that is configured under Settings/iCloud.  That then allows us to have our own Mail/Contacts/Calendars/Reminders/Safari Bookmarks/Notes/Passbook/Photo Stream/Documents & Data/Find My iPhone/and Backup.  That Backup piece is pretty sweet and comes in handly if you replace your iDevice.  You can just restore from it.
    So we all share the Apple Store account but we all have our own iCloud accounts to keep the rest seperate or things like you mentioned are a nightmare.
    In answer to what iCloud does for you: http://www.apple.com/icloud/features/
    Think of it as an internet based ("cloud") area for all of those items listed in my response.  What you need to remember is photo stream only maintans the last 1000 pictures so don't count it as a complete backup solution for your pictures.  Even though I rarely sync with a computer these days, I do still try to sync my phone with iPhoto (I have an iMac) so that I have copies of all of my pictures.  1000 may not stretch as far as it sounds.
    Message was edited by: Michael Pardee

  • Maintaining Multiple Vendor Phone Fax and Email using IDOC

    Hello Guru's,
    I have a requirement where I must be able to maintain multiple phone and fax entries for all of our vendors.  Is there a standard segment in IDOC CREMAS05 that will allow for this maintenance?  Or will I have to use a separate BAPI / FM?  I think there must be a standard way for doing this.
    As of now it appears the CREMAS05 IDOC only supports the ability to maintain one phone/fax or email address at a time, which is in the LFA1 table, and not at the address table level (ADR2, ADRC, ADRT, etc.).
    This is for an R/3 System running on EHP5.
    Thanks,
    Kohl Kemp
    Edited by: Kohl Kemp on Jul 14, 2011 3:16 PM

    I've never done this natively in CUC.  Here's a guide that covers how to do it with the Fax server integration if that helps:
    http://docwiki.cisco.com/wiki/Configuring_Fax_Detection_%28Single-Number_Voice_and_Fax%29_with_Cisco_Unity_Connection

  • The infamous Conditional Formatting and page numbers

    I've been digging through these posts and I see that conditional formatting and page numbers is a common topic, but none of the posts I've seen seem to come up with an answer to my suituation:
    (Apologies in advance, I know this has been covered in many previous posts, just don't seem to be able to decipher a clear answer...)
    I have a client who wants a boilerplate item - the word "OVER", to signify a miltiple page report - to be printer on the botton right of the page, BUT as usual there are seeveral conditions when they want it NOT to show.
    First, they wnat it to only print when a specific Source is selected. That's a database field, and I have that conditional formatting piece working,
    Second, they only want it to print on ODD numbered pages, I think I can use something like MOD(SRW.GET_PAGE_NUM(x),2)=0 to determine whether or not it's an odd numbered page, but havn't been able to try it yet,
    Third, if the report is only a single page they don't want it to print at all. Not sure how to accomplish this, since the holy grail of the conditional formatting seems to be the total number of pages, and none of the posts I've seen have been able to get this.
    Any ideas?

    The "Select All" button selects all cells that have the format you are looking at. It makes it so you can easily modify them all at once.

  • My phone displays numbers instead of contact names for incoming calls and text - how do I fix?

    My phone displays numbers instead of contact names for incoming calls and text - how do I fix?  It used to display the names if there was a contact listed, now it just shows numbers regardless of whether or not the number corresponds to a contact name in the contact list.  Can anyone help?  I googled this problem and lots of folks have experienced it, however there is not a consensus for a resolution.

    Alexandribill, I have been having the exact same issue.  I got a new phone and restored my contacts.  If the # doesn't have the area code first then the name isn't shown.  I just added my husbands area code to my phone and called my phone from his and now his name shows up...Ugh, I have to go through and manually add the area code to all my contacts....
    I'd say Verizon needs to rewrite their program to include the area code in the restoring from backup process!

  • HOW TO CONVERT A XML FILE TO HTML FILE FORMAT IN WINDOWS APPLICATION

    Hi iam a fresher iam working on a project in that i should convert the data in xml file to html file. I dont have any idea regarding this can anyone help me how to convert the xml file to a html file format. I just written the code till how to read the xml
    file. Now i stucked how to write the code for converting to html format.
    Thanks and Regards,
    Dileep.

    Hi iam a fresher iam working on a project in that i should convert the data in xml file to html file. I dont have any idea regarding this can anyone help me how to convert the xml file to a html file format. I just written the code till how to read the xml
    file. Now i stucked how to write the code for converting to html format.
    Thanks and Regards,
    Dileep.
    Hello,
    For converting xml file to html, we could refer to the way shared in the following thread which uses an XSLT stylesheet to transform the XML into another format using the
    XslTransform class.
    http://www.codeproject.com/Articles/12047/How-to-Convert-XML-Files-to-HTML
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Phone contact numbers replaced with Skype number

    I have Skype mobile on my Android phone. Everytime I get a Skype call, one of my phone contact numbers get replaced by the Skype number. I don't realize it until I try to call that contact and see that it has a 1-404- number, or when I get a Skype call and it says my phone contact's name on the caller id. How do I solve this?

    I have Skype mobile on my Android phone. Everytime I get a Skype call, one of my phone contact numbers get replaced by the Skype number. I don't realize it until I try to call that contact and see that it has a 1-404- number, or when I get a Skype call and it says my phone contact's name on the caller id. How do I solve this?

Maybe you are looking for

  • Strange error while using ActionListener with RichCommandLink

    Hi, I am using Technology preview 3. I have RichTable bound to af:table in my JSF page. I am showing database contents inside richTable. Inside richTable i have one extra column in which i am showing remove link. So every row of table will have remov

  • Side effects disabling rsh (SUN OS)

    Hello. For security reason OS administrators want to disable the rsh on all servers. Can anyone list what are the side effects in SAP systems (tools or transactions which would not work anymore) and which could be a workaround? Thanks a lot, kind reg

  • My apple bluetooth keyboard is not paired by my Apple TV 1st generation. Is it a bug of new sw version?

    my apple bluetooth keyboard is not paired by my Apple TV 1st generation. Is it a bug of new sw version? My apple keyboard is a qwerty keyboard that is normally function with other apple devices (iphone5, iPad, etc.)

  • Help with converting an applet into an application

    Here is a set of code which can work perfectly fine as an applet. But I have problem converting it into an application. Any help? I get some null pointer exception. Thanks alot. //File Name: Radar.java //Author: Saad Ayub import java.applet.Applet; i

  • User Exit :Include ZXDEU02

    Hello everyone , Can anyone please give me the logic or code to write in this include to populate VBAP.PRODH into ORDERS05 E1EDP19 segment please. with qualifier 999 thanks in advance