Computation ???

I am new to Apex. We have 3.2 on a 10.2.0.4 database. I have a table with a column MONTHLY_SAVINGS. When the user clicks Apply Changes I want to calcualte the ANNUAL_SAVINGS (MONTHLY_SAVINGS * 12). I cannot get it to work.
I tried creating a new computaion. Can anyone help me out. Something like PL/SQL Function Body
declare
y number;
begin
y := (:P69_MONTHLY_SAVINGS * 12);
return y;
end;
The MONTHLY_SAVINGS and ANNUAL_SAVINGS are displayed as text on screen but are numbers in the database. Do I need to do a to_number and then convert back to to_char when I return?
I get this error
ORA-06550: line 1, column 27: PLS-00103: Encountered the symbol "DECLARE" when expecting one of the following: ( - + case mod new not null avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe

Hi,
:P69_MONTHLY_SAVINGS as any other APEX item is a string.
It means that you have default conversion from string to number and default format mask in your database is
not consistent with value entered in :P69_MONTHLY_SAVINGS.
You shouldn't rely on default conversion but make conversion yourself.
For instance if :P69_MONTHLY_SAVINGS is entered in 99999.99 format
you should use:
declare
y number;
begin
y := (to_number(:P69_MONTHLY_SAVINGS,'9999999.99') * 12);
return y;
end;
If :P69_MONTHLY_SAVINGS is entered by user you should add validation
to verify that :P69_MONTHLY_SAVINGS is entered correctly.
Lev

Similar Messages

  • Multiple ipods belonging to multiple family members on one computer

    How do I keep my family's libraries separate on one computer. I have been checking and unchecking songs each time I sync one of my children's ipods. It is driving me nuts. There has got to be a better way. My husbands library alone so far is 1300 songs. HELP!

    When the iPods belong to different people, there are basically three ways of using multiple iPods on a computer and these involve:
    a) Sharing a single iTunes library
    b) Creating Multiple Libraries in a single user account
    c) Creating multiple user accounts.
    Note: When you are sharing an iTunes library, you don't have to set each iPod to update in the same manner, you can mix and match from the options below as each iPod has it's own update settings
    Sharing a Library and/or User Account
    If you want to share the one library, you can set either or all of the iPods so that they only get updated with only certain playlists (you can update from more than one if you wish): iPod - Syncing Music
    Choosing the update option "Sync Music - Selected playlists" allows you to create a playlist specifically for the iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used some other time if you choose. You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes
    Or you can choose to update any or all of the iPods manually and just drag whatever content you want to them: Managing content manually on iPod and iPhone
    Loading the iPod shuffle differs slightly but it can still be used with the others, for details have a look at this page: Adding songs to iPod shuffle - Windows
    Multiple Libraries
    It's also possible to have multiple libraries in a single account. To create or access a second (or more) library, hold down the Shift key in Windows when launching iTunes 7. In the resulting dialogue you will get the option to create a new library or navigate to the other Library.
    Note: You can only have one Library open at a time and iTunes will default to the last library opened if you don't use the keyboard command to choose one. This can prove tricky when using multiple iPods, if you don't use the keyboard command you can risk syncing to the wrong library: Using multiple iTunes libraries -Windows
    Separate User Accounts
    Another option is to create a separate User account for each person on your PC or Mac. Different accounts by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. The iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists
    I don't use Windows so I can't give you a step by step on that one, however I can point you to another web page which should help you out. You can read about Windows user accounts here:
    Using Windows XP User Accounts
    Create A New User Account In Vista

  • IPod Touch/Phone 4gens No Longer Detected in WINDOWS MY COMPUTER but OK in iTunes

    Since I have not found help online regarding the above situation I'm looking for help accordingly.   For most folks it's iTunes not detecting i-Devices, but my situation is unique.
    It started last night after I was on the phone for hours with Norton regarding error messages I was getting with Internet Security.  Those issues have been resolved.
    Again: iTunes detects and interacts successfully with ALL my iDevices.  Windows Vista > My Computer no longer does.
    Please help.

    Just now I performed the following:
    Turned off and turned back on AMDS(Apple Mobile Device) Service.
    Disabled Norton Internet Security, and tried checking if Windows would see my devices.
    For anyone who has Windows Vista you are familiar with the notes that play when you plug in a USB device: "da-dunk!"  Low-High note dadunk indicates connected.   High-low indicates it was disconnected.
    I can tell there is a problem because right after the Low-High dadunk in Vista I get a triple Low-note Du-du-dunk.
    Please help!

  • ITunes + Vista = my computer can no longer see my DVDrw drive...

    I just downloaded iTunes 7.6.2.9 onto my Dell Inspiron E1705 - and when I restart my computer, the computer can no longer see my Optical drive (DVDrw). I contacted Dell support, and they changed something in the regedit limits or something(I'm not a techy lol), and my optical drive was back.
    But the next day when I opened iTunes I got a message that says:
    "Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing other CD burning software. Please reinstall iTunes."
    So I reinstalled iTunes.
    I restarted my computer, and it could no longer see my optical drive AGAIN. My DVDrw drive gets an error that says "This device cannot start (Code 10)." When I check for solutions it says "Could not load driver software."
    I go back to Dell support and tell them my optical drive isn't working. They do the exact same thing to fix it (deleting some limit with regedit) and it works. I open iTunes, and I get the iTunes Warning (Setup Assistant Error).
    I asked the Dell tech what the deal was, and he said iTunes isn't compatible at all with Vista.
    But according to Mac's website it is...
    Anyone know what's going on?!?!

    I am having the exact same behavior as xhollysue!
    It goes like this:
    1. Install ITunes, lose optical disk drives hardware (they don't even show up in Windows Explorer).
    2. Use RegEdit to disable Upper Filters at HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE1 0318}, optical drive hardware re-appears.
    3. iTunes requires a re-install to permit CD burning, and your back to square one.
    I got the above fix NOT from a Dell technician, but, instead, from a Microsoft technician, which cost me $70.
    I would strongly urge Apple to research this issue and come up with a more reasonable workaround since (1) the iPhone is being adopted by many traditional MS users and the use of iTunes is an integral part of the iPhone technology architecture; (2) iPhone 3G is just now shipping and will bring even more into the Apple camp; and (3) iTunes is clearly a better media player.
    Come on Apple. Let's get some enthusiam and take advantage of this opportunity!

  • I cant figure out why my HTC Droid DNA is no longer recognized by my computer when i hook it up with the USB cable that came with the phone.

    I used to be able to just plug in my phone with the USB cable to my Windows 7 computer and browse phone storage with no issues. Now my computer sees it as an android phone but when it tries to automatically install the drivers for my phone on the computer, i get an access denied error message. No option on the phone that i can see that allows me to mount phone as a usb drive. This used to work just fine with nothing more than just hooking up the cable. What gives??

        Let's get that access granted again, e_rock_b. The HTC DNA doesn't have a special USB Mass Storage Mode that needs to be turned on. Usually, it's as simple as connecting and browsing http://vz.to/1jktbZD as you mentioned. If your computer is no longer allowing that easy access, try the steps at http://vz.to/1jktvr6.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • ITunes & Windows Vista Home - Error File C:\Program Data\Apple Computer\Installer\Cache\iTunes 10.5.142\iTunes.msi was rejected by digital signature policy.

    Tried
    https://discussions.apple.com/thread/2713232?start=0&tstart=0
    and
    http://www.vistax64.com/vista-general/159940-computer-blocking-anything-no-digit al-signature.html
    with no avail!!!
    iTunes opens after I click OK on the above message however I cannot do anything within the app its like Windows it preventing it from running.
    PLEASE HELP!!!

    Update:
    I tried what the diagnostic told me to do, and repaired the installation. I was able to burn a CD in iTunes, but after I restarted, the drives have disappeared again! Here's the diagnostic info now:
    Microsoft Windows Vista Home Edition (Build 6000)
    MICRO-STAR INC. MS-6728
    iTunes 7.6.0.29
    QuickTime 7.4
    CD Driver 2.0.6.1
    CD Driver DLL 2.0.6.2
    Apple Mobile Device 1.1.3.26
    iTunes Serial Number 20D6EAF059AB94B4
    Current user is not an administrator.
    The current local date and time is 2008-01-15 19:09:32.
    iTunes is not running in safe mode.
    Video Display Information
    ATI Technologies Inc., Radeon X1600/X1650 Series
    ATI Technologies Inc., Radeon X1600/1650 Series Secondary
    ** External Plug-ins Information **
    Plug-in Name: Last.fm iTunes plugin
    Plug-in Loaded: Yes
    Plug-in Version: 0.0.13
    Plug-in File Version: 2.0.13.0
    Plug-in Path: C:\Program Files\iTunes\Plug-ins\itw_scrobbler.dll
    No drives showed up to be tested.

  • Adobe Cloud auf einem zweiten Computer

    Ich habe die Adobe Cloud von meiner Arbeit. Es wurde mir gesagt, dass ich die Cloud ein zweites mal auf meinem privaten Computer installieren kann. Wie geht das?

    Hi tanja29,
    It works the same way like you installed on your work machine. Simply login to https://creative.adobe.com/ and download the desired CC applications of your machine.
    Check this link for more details, Creative Cloud Help | Install, update, or uninstall apps
    Let me know in case you need any more help.
    Cheers!
    Arpit

  • Adobe Cloud is installed on my desktop and one laptop computer. Upon noticing updates were available yesterday, I successfully installed them on my laptop. Today, I cannot get Abobe Cloud to open on my desktop.

    Adobe Cloud is installed on my desktop and one laptop computer. Upon noticing updates were available yesterday, I successfully installed them on my laptop. Today, I cannot get Abobe Cloud to open on my desktop.

    We don't know what Apple plans on doing to change this (and it may not be just Apple but more likely the publishers, since Apple would, of course, do whatever it could to maximize sales/profits).  Right now you can only read Apple books on mobile devices. Sure, buy them from Amazon if you want to read them on the computer. We don't work for Apple so we're pretty impartial on this kind of advice.
    You might also see what your library can offer.  My wife can browse the county library from her iPhone, borrow e-versions, and read books on it too.  Free!

  • Adobe cloud download products on new computer

    I have used ADOBE CLOUD on a laptop for over a year after downloading files to a laptop computer.  Now I need to install on a new computer.
    Where do I access these file?  I do not want a FREE TRIAL, I already pay a monthly membership for small business.

    You can download the cc application manager here Get Adobe Creative Cloud Desktop App & Adobe Application Manager

  • Malicious or not? Message popped up: Mozilla security found (something like too much, forget exact word) activity on your computer so it will do a fast scan of system file. With OK button.

    I was looking at youtube.com, which always tells me my browser is not supported and recommends I download Firefox, but that is what I was using, so I went to Firefox to check for updates. (I think I also had freecycle.org open.) Then this message popped up in a new page: Mozilla security found (something like "too much", forget exact word) activity on your computer so it will do a fast scan of system file. There was an OK button. The page address was: http://update17.stegner.ce.ms/index.php?Q7Lhl9ShbRxGJXpkM1VLSi4ZE8H4pTedoVPySgeppM3VpC+thEspcFG7qxHgn1pdsC2h5ygPGWI3t5hXqMzL9EQaZZ3J1e3CKXgCb0Qp. I did not click OK but copied the link and closed the window which closed the internet. I have never seen this before and would like to know if it is really Mozilla or possibly something malicious. Thank you.

    Good catch. That almost certainly is an invitation to download malware.
    There are a lot of infected web sites pushing "fake antivirus" software. If you have any doubts about whether your system might have become infected, you can supplement your regular security software with these two highly regarded scanners:
    Malwarebytes Anti-malware : http://www.malwarebytes.org/mbam.php
    SUPERAntiSpyware : http://www.superantispyware.com/

  • Computer not responding

    Hi,
    I have an iMac from 2007 operating on Leopard. I've been having trouble with applications freezing, but this morning after being in Safari, everything just froze. I couldn't go to a new web page, I couldn't quit Safari. I can move the arrow, but when I try to select an app from the dock, nothing happens. I can't open anything on the computer, I can't shut down unless I cut the power.
    The clock is running, my Skype window opened automatically, and the cursor is blinking in the search box there. I can type in the Skype search box, but there is no response when I hit return.
    I am currently on my daughter's laptop since I can't get my desktop to respond at all.
    Thanks for any help!

    First, press COMMAND-OPTION-ESC to see if the task manager will open. If not then you will have to do a forced shutdown by pressing the power button and holding it down until the computer shuts down. Wait about 30 seconds to allow the hard drive to spin down fully, then do the following:
    Repairing the Hard Drive and Permissions
    Boot from your current OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    You may be fine after this, but if you continue having a problem let us know what that is.

  • With iPhone 4, Voice memos and a faulty Sync, does anyone know how to get a VM which didn't sync at the time into the computer?

    I have an iPhone 4 ISO 7and an iMac with Mavericks. During a sync with my phone there was a glitch and VM's did't get onto the computer. They are still on the phone.  Is there a way of getting them onto the computer?  Further attempts at sync were no solution. the computer will not read them it seems.
    Thanks,
    John

    After spending 2.5 hours on the phone with Apple, the solution was to edit it, trim a second or 2 off one end, save it as new and the computer would recognize the new file. Great.  Thanks. John

  • How do I use my third computer with cloud. I am rendering a project in Avid Media composer

    How do I get my third computer to work with when I am rendering Avid project on the other two computers computers

    Hi,
    Running creative cloud on third machine will prompt you for the deactivation from last 2 machines. As per EULA for Creative cloud you can only install and work on 2 machines only, be it MAC-MAC, MAC-windows and windows-windows.
    working on third machine without deactivation from previous machines is not possible.
    Hope this helps.
    Thanks
    Kapil Malik

  • How do i use a new computer with my ipod?

    how do i use a new computer with my ipod?

    See this apple support communities user tip…
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • I tried to sync some new songs bought from iTunes into my ipod using my laptop, (for the first time).  It would not add the new songs to the ipod.  I tried several times, with same result.  I never had this problem using my desk top computer.

    I also am having a problem with the songs I purchased using the laptop not showing on the desk top itunes, even though it is authorized to do so.  The new songs did show up on the iPad iTunes, however.  Have no idea why.  I thought this happened automatically.

    Welcome to the Apple Community.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option which is revealed in the iTunes app on your iOS device by tapping the more button at the bottom of the screen.

  • Movies I have purchased through Itunes show up on my computer, but do not show up on Apple TV

    Latley I have notices that movies in my Itunes library are "missing" from my apple TV's.  I have checked under get info "type", checked show in windows explorer, but certain movies just are not in the purchased catagory on the apple tv.

    Sign out of the Apple ID on the ATV and sign back in.
    Honestly not sure why it matters, if they are on the computer, play them via the Computers option on the ATV to avoid streaming them over the Internet.

Maybe you are looking for

  • In Mail can I change my "To" field to From or sender

    In Mail my inbox shows 3 fields "To, Subject, Date Recieved" Can I change the "to" field to from or sender. I know who the mail is to, it's always to me after all it's my mail I'm checking. I would like to know the sender so I can better decide which

  • Can't record sound from DVD player

    I just built a new DAW with a Gigabyte MoBo that has the Realtek sound chip on board. I installed an M-Audio external Fast Track Pro connected to the computer with USB 2.0. With the two sound devices I can play Band in a Box (my main band) through th

  • Maintenance View of Z table

    不知道什么原因,现在用SE55创建Z表的maintenance view的时候,在overview screen中,不能生成table control的形式.但是single screen是正确的.之前在同样的平台下,却可以做到.有什么原因会造成这种情况? 找到问题了,原来是因为key的设置. Edited by: Amy Xie on Mar 16, 2010 7:49 AM

  • Is it possible to have a Youtube or Google search result appear in Firefox history without knowing about it?

    I recently found some Google and Youtube search results on my boyfriend's computer in Firefox that were "questionable" and when I asked him about them, he adamantly denied knowing what they were and said he recently had some viruses on his computer a

  • Join two 8 bit integers and send via Serial Port

    I am trying to join two 8 bit integers and send the result via the serial port. I have a constant of hex value A that I need to join with a value from hex 0 - F (this is based on incoming data) When I use the Join VI, and type cast to change from hex