Problem with Format Masks and Computations

(I did a quick search on this, but didn't notice another thread on the topic. If there is already one I apologize.)
We are using APEX version 2.2.1.00.04.
I had an editable item that had the 999G990D00 format mask. In a computation I used that item and another item (that didn't have a format mask) to calculate a third item. The item I was trying to compute would not populate. It really had me stumped, so I went so far as to completely delete the fields and re-construct everything. When I did so the computation worked. That is until I put the format mask on the item again. I removed the format mask and the computation now works.
Is this a known issue? Is it a bug? Am I doing something wrong?
Thanks, Tony

Tony,
As Patrick mentioned, all variables in Apex are strings. Whenever you do something with them that effectively requires something other than a string value the database does an implicit type conversion. This often works, but not in cases where the db doesn't know how to do the conversion. For example, if your default database date format is dd-mon-yyyy and you have a string 10/09/2007 the database won't have any idea how to convert it to a date. That same is true for number formats.
In your case, you used the number format mask in apex to convert a number to a string witht the given format. Apex does not do anything to convert it back to a number when you submit the page (unless you use the built in row processing). If you want to do anything with it as a number, you need to change it back with the to_number function. The second parameter is the format mask of the string you are passing in.
Hope this helps,
Anton

Similar Messages

  • Problem with format mask and currency

    Hi,
    I am trying to apply a format mask to a report column.
    I want my format to be: 4500 ==> $4,500.00
    I have tried to apply: FML999G999G999G999G990D00, and i get #4,500.00
    Do i have to set a currency parameter somewhere for this format mask to work?
    I have done a select * from nls_database_parameters:
    NLS_LANGUAGE AMERICAN
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET US7ASCII
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    Thanks in advance,
    Immanuel

    Immanuel,
    Here's what I believe is going on:
    1) Your database character set is US7ASCII. US7ASCII cannot store a '£' character.
    2) Although the real NLS_CURRENCY symbol for NLS_TERRITORY UNITED KINGDOM is '£', it's displaying a converted character of '#', due to the above reason.
    3) The currency symbol from the format mask is determined by your NLS_TERRITORY (and hence, your NLS_CURRENCY) settings for the session.
    4) Your application is most likely setup to run with an application primary language of English United Kingdom. Thus, your application will always set NLS_TERRITORY to UNITED KINGDOM.
    To get your desired result, either:
    1) Change your application primary language to en-us
    or simpler yet
    2) Hard-code the $ sign in your format mask.
    Joel

  • Problems with animated masks and external images

    I have an instance of a movieClip on the stage and I load an external JPG into the movieClip.  The movieClip is masked by a layer that begins animating on a certain frame.  As soon as I reach that frame my externally loaded JPG disappears.  The movieClip doesn't mind being masked, but as soon as the mask animates the external image goes away.  The mask animation is shapes drawn frame by frame.
    It is interesting to note that if I create a Class and load the JPG into the movieClip (or do this in a constructor) I do not experience this problem - it is when the JPGs are loaded into an instance of the movieClip that lives on the stage that I encounter this. Unfortunately that is not an option in my project (since I have to get the path for the JPG from an xml file I am loading).
    Could someone please help me with this?

    that's a flash bug.

  • Problems with HP Printer and Computer

    Why does my computer fail to connect my printer? The computer says the printer is connected when it is not and the printer spooler keeps disconnecting? Please help.

    Hi @mommacat,
    Welcome to the HP Forums!
    I understand that you are having troubles connecting your HP Deskjet 1010 to your Windows 8 computer. I am happy to help!
    I am assuming you are connecting with a USB 2.0 printer cable, since the printer's specifications states this is the only method of connecting available.
    In the meantime, I would recommend to go through this guide, 'Printer is offline' Message Displays on the Computer and the Printer Will Not Print: Windows 8, and watch this video:
    Hope this helps!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • My iTunes says that there is a problem with my ipod and i have to restore it, but i bought songs on my itunes on my ipod not on the itunes on the computer so i have not transfered purchases and now it wont let me how doi restore without losingmy newsongs

    So my itunes says that there is a problem with my itunes and i have to restore it but i have purchased ne songs through itunes on my ipod not through the computer so of course i would have to transfer purchases on my ipod to the computer before i restore it so it does not delete everyting and then i cant back them up. So i went to transfer purchases and It wouldent let me. So how do i transfer my purchases before i restore my ipod so i can back it uup so i dont lose everything.   Thanks

    There is a backup plan after doing the Restore.  Read this.

  • Hi i am having a problem with itunes on this computer so i had to remove it and tryed to download it again and now every time the computer comes on i get a notification which says "the program cant start because MSVCR80.dll is missing from your computer

    hi i am having a problem with itunes on this computer every time the computer comes on i get a notification which says"the program cant start because MSVCR80.dll is missing from your computer,try reinstalling the program to fix this problem" but when i click on ok it just keeps popping up 4-5 time and then gone.and i cant dopwnload the itunes again.help

    You need to work through the user tip: https://discussions.apple.com/docs/DOC-6562

  • How to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    how to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    Because it was not possible to apply a gradient to a stroke in CS5. When you open the file in CS5, it is reduced to something that can be rendered in CS5.

  • An alignment problem of format mask in PDF output

    Hi,
    I'm testing iAS10g on WIN2000.
    Both the Reports Developer and Reports Server versions are 9.0.4.2.
    The database character set is UTF8,
    and I'm using Adobe asian font pack in the [PDF] section of the uifont.ali config file to print Chinese characters.
    The PDF reports run well except one problem:
    The right align field attribute seems fail due to the format mask.
    The right aligned number field with format mask NNN,NNN,NN0
    overlaps with its right field when its value is greater
    than 999 (when the comma appears).
    Please help.
    Thanks.

    Excel takes it's format from the regional settings of the PC. It is a *** to get around this mandatory Excel feature. You can add a single quote in front of the value, i.e. '99-99-9999. Excel treats this as a text value.

  • Problems with USB port and song transferring;

    Hi! I just got an iPod and I am having problems with it. My computer doesn't have a Hi-Speed USB port, even if it's 9 months old. Some of my friends don't have it either but they still are able to transfer songs onto their iPod. For mine, it keeps saying "Do Not Disconnect." I waited for 5 hours last time I got it and it still isn't working.
    I also updated my iPod software today and the iPod icon isn't appearing on the bar to the left in iTunes. I'd really appreciate any help on this! As well as if I really need to do something about the ports or if it could function like this normally.

    Quote from: Svet on 08-December-10, 00:48:07
    Install chipset drivers from MSI web:
    http://eu.msi.com/index.php?func=driverfile&dno=2427&i=0
    +
    NEC USB 3.0 Drivers:
    http://eu.msi.com/index.php?func=driverfile&dno=11189&i=0
    are these the same driver provided with the disc driver? as i already installed both of these..

  • Problems with the richTextEditor and quotes

    Hello
    I'm having problems with quote chars and the richText
    control's htmlText. When users enter quotes into the richTextEditor
    control. The quotes breaks the HTML text, meaning it's no longer
    well formatted. Is there an escape char that I need to use. Or do I
    need to force some kind of refresh on the control prior to using
    the htmlText string?

    I have been using RTE in a content management system and
    found a need to replace non-standard quote characters with proper
    UTF-8 character counterparts. Curly quotes in particular are
    problematic. Use a replace function to substitute non-standard for
    standard characters.

  • Problems with itunes 8 and ipod shuffle gen 2.

    Problems with itunes 8 and ipod shuffle gen 2.
    I recently upgraded from itunes 7 to itunes 8 on my windows XP PC. That's when i had issues syncing my 2nd gen shuffle.
    When i try to drag songs directly on it, itunes says i can't
    I made a playlist and use auto fill. But when I remove it from the dock, it's either not updated, or the new songs are at the bottom of the playlist when they are supposed to be up higher. I end up having to hit auto fill twice to make it sync correctly.
    Computer Specs
    Windows XP SP3
    384MB of Ram (works really good)
    USB 1.1 connection
    Pentium 4 clocked at 1.285 GHZ
    IPOD Shuffle Specs
    2nd Generation
    1GB (964MB)
    Version 1.0.4
    unchecked options: open itunes when ipod is attached, Sync only checked songs, convert higher bit rate songs to 128kbps AAC, Enable sound check, Limit MAX volume, enable disk use
    All those are NOT checked. Sometimes i enable disk use for seeing the IPOD_Control folder, but either way it still messes up.
    Itunes Specs:
    Version 8.1.1.10

    This is a well-known issue. Apple changed the internal file names used with iTunes 8, which makes the ordering on 2nd generation Shuffles behave differently. There is no good workaround, apart from moving the files with a hand-crafted AppleScript program.
    Apple has been silent on the issue, so nobody knows if we'll ever have a fix for it or not.

  • Hi anyone having a problem with windows 7 and itunes

    Hi has anyone had a problem with windows 7n and Itunes...My Itunes was working now wont open says files missing reinstall...which I have done several times also other programs that were working now have error message your side by side configuration isnt correct any ideas!!!

    Yes, I am also having trouble with my windows 7n.  I tried to install the download but it didn't have 32 bit for my computer and I don't think it will help me see my phone on my external devices. I can't transfer my photos. Any help would be appreciated.

  • Application Express 3.1 + BI-Publisher + problem with formating numbers

    Hello together!
    I use the Oracle BI Publisher Template Builder for Word (10.1.3.4) to generate RTF-Templates. I upload these templates in Oracle Apex (Advanced support-->BI-Publisher/OC4J as print service).
    It works well, but I have a problem with formating numbers.
    In Template Builder I define following number formats, for example: #.##0 for numbers like 1.454.234 and #.##0,00 for numbers like 54,80
    In Template-Builder Preview it looks well.
    But whatever I do, in use with Oracle Apex dots and comma are allready interchances in the printout.
    That means,
    1.454.234 become 1,454,234 in PDF-Report
    54,80 become 54.80 in PDF-Report
    Other than that, the layout is exactly the same like in Template Builder defined.
    What's wrong?
    Do I have to change any country parameter?
    Juliane

    I also had the same problem. I tried with normal formating of 99g99g999d99 instead of ##,##,##0.00 and it has resulted correct way.

  • HT4972 I have an iphone 4 , but it still has the ios 4 , and i want to upgrade it to a newer version , but when I try to do it via  Itunes it says there's a problem with the internet (and the internet it's working fine) and it won't work ,how can i upgrad

    I have an iphone 4 , but it still has the ios 4 , and i want to upgrade it to a newer version , but when I try to do it via  Itunes it says there's a problem with the internet (and the internet it's working fine) and it won't work ,how can i upgrade?

    try rebooting your computer.

  • Error: There is a problem with the file and it cannot be copied

    I've been trying to copy (and essentially move) the contents of an NTFS-formatted external HDD to my iMac's internal HDD so I can then format the external HDD to Mac OS Extended. However, when I simply try to drag and drop, I get an error during the transfer that states:
    There is a problem with the file and it cannot be copied.
    I tried a basic cp command in Terminal to copy all contents of the external HDD to a folder on my iMac's desktop, and found that while there were no errors, there were many individual files missing full chunks of data (ie. original file would be 4GB on my external HDD, but only 350MB on my desktop).
    Any ideas on how I can successfully copy a large amount of data (approx. 170GB) from my external HDD to my internal HDD while avoiding this error, so I can ultimately format my external HDD to Mac OS Extended? ANY help is greatly appreciated.

    That's not a good error to see. It indicates something is very wrong. Pulled out of an old programming header file:
    ioErr = -36, /*I/O error (bummers)*/
    If Apple labelled it "bummers," they had a good reason! Unfortunately, that doesn't bode well for you.
    Try running Disk Utility again. Keep repairing over and over until one of two things happens: 1) Disk Utility says no repair was needed, or 2) Disk Utility reports the same error in two sequential repair sessions and is unable to repair it both times.
    If you hit the second case, or if you hit the first but still can't copy files, then you've got two basic options:
    = Buy a third-party disk utility or two and try them. Try TechTool as a first choice.
    = Recover what files you can and write the rest off as gone.
    = Send your drive to a data recovery service and hope they can extract more than you can.
    Of course, none of this is necessary if you have a backup of the contents of that hard drive. (If you don't, this is your learning experience. Once bitten, twice shy, so they say.) Also, regardless of the outcome, once you've got your data or have decided it's gone, you're going to want to wipe that drive completely clean. Reformat the drive with Disk Utility, then when it's done, select the drive in Disk Utility and hit command-i. (Don't select the new volume you just created on that drive, select the drive itself. Mine looks like "232.9 GB Hitachi ..." with the volume name indented underneath.) Look for an item that says S.M.A.R.T. Status, and if it doesn't say Verified, you might as well throw out the drive. Don't trust any more data to it.
    If all appears safe, you can start moving data back onto it. But, as always, make sure you have a backup of everything!

Maybe you are looking for

  • Satellite U400-10N fails to start while showing black screen!

    So i press the power button, The 3 Leds are appearing fuctional but the CPU-GPU fan fails to start! After a while it shuts off it self and then it tries to start again but the fan fails again while only the power led is on and not the others (Led 1 a

  • A problem using MobileMe mail with new Firefox upgrade?

    I can no longer attach photos/documents to my MobileMe outgoing messages. This problem seems to have coincided with the recent Firefox "upgrade" 7.0.1?

  • Two iTUnes questions...

    I have two questions that experienced users may be able to answer: - Most of my albums show in itunes with all the songs that belong to it. However, some Albums show one album cover for each single song on the album. How can I unify all songs that be

  • How to configure a plugged in usb device to use the winusb driver

    Hi, We have an app that uses an ANT+ USB dongle to tap into ANT+ messaging traffic and we would like to get our app up and running on the Raspberry PI running Windows 10 IoT. Using Powershell I can see that the device is recognized when plugged in: N

  • Getting passwords from Keychain into Dreamweaver

    Hello, I had a trial version of Dreamweaver CS4 on my Mac, and when I unsinstaled it I had some problems with CS3, so uninstalled that but reinstalled it. Now all the account infor for all my sites are gone from CS3. I still see them in the Keychain