Display '0s' for null database items Please help!

Hi all,
I need your help on a possible minor problem I'm encountering. I have 5 fields (all numeric data types) on my form of which, the last field is a sum (formula non-database item) of the top four items. 2 out of the remaining 4 fields are database text items in which I'd like to update the database based on user input. The table that stores the 4 values does not require data and defaults to null if no data present.
What I'd like to do is display a '0' on the form so that its visible and it could get added to the formula sum item but not update the database fields with a '0' (if any one of those top 4 fields returns null from the table ). I've tried creating a formula in the property palette on the fields with an nvl(field,0) function and got a chain reference error that I couldn't figure out based on the oracle error suggestions. Does anyone have any suggestions on how I could handle my request. Any help would be greatly appreciated.
Thanks,
Eric

Zakiy,
I don't know much about the POST-CHANGE trigger. Did a little research and posted some code in there retrieving the nvl(field) value. It compiled ok but didn't display the '0.' I'm not sure if I used the trigger the right way.
Here's my code:
DECLARE
v_points NUMBER;
CURSOR c_points IS
(SELECT nvl(points,0)
FROM student
WHERE student_id = :id);
BEGIN
OPEN c_points;
FETCH c_points INTO v_points;
CLOSE c_points;
END;
If this is incorrect, do you have an example from what you were thinking? Also, just out of curiosity, why do you recommend this trigger over the formula?
From what I was mentioning before, I don't know why the formula w/the nvl works in the sum field but doesn't in the other 4 fields. The sum field is a non-database item whereas 2 others are display items and the remaining 2 are text items. Seems simple enough to use the nvl in the formula section for all 4 fields I kept getting that error.
Eric

Similar Messages

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • Displaying Picture in a Java APPLICATION please help!!

    I have been trying to write a method that Displays a .jpg file when called. However I have not gotten far, every book I have tell you how to display pictures in an applet but not an application. I did find some code that is supposed to be for an application, but It does not compile right. Any help would be apprecidated!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PictureIt{
    public void makeImage() {
    //***Image Output Stream
    String imgFile
    = "d:\\temp\\TestImage.jpeg";
    out = new FileOutputStream(imgFile);
    BufferedImage image = null;
    image = (BufferedImage)createImage
    (panelJpeg.size.width, panelJpeg.size.height);
    Graphics g = image.getGraphics();
    panelJpeg.paintAll(g);
    }

    Displaying Picture in a Java APPLICATION please help!!
    Hope this helps.There is going to be two classes compile seperatly first class is what does the drawing
    here it is
    import javax.swing.*;
    import java.awt.*;
    public class draww extends JPanel {
    Image ball;
    int width1 = 100;
    int height1 = 100;
    public draww() {
    super();
    Toolkit kit = Toolkit.getDefaultToolkit();
    ball = kit.getImage("pic1.gif");
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D) comp;
    comp2D.drawImage(ball, 20, 20, width1, height1, this);
    sound class is the container JFrame here it is
    import javax.swing.*;
    import java.awt.*;
    public class drawing extends JFrame {
    public drawing() {
    super("draw");
    setSize(400,400);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container pane = getContentPane();
    draww d = new draww();
    pane.add(d);
    setContentPane(pane);
    setVisible(true);
    public static void main(String[] args) {
    drawing drawing1 = new drawing();
    PS Hope this helps and see you around

  • How to access each row value for a database item

    On my form I have a database datablock that represents a table in my database.
    5 rows are shown with a scroll bar that can be viewed to show the rest.
    The user is able to change some of the Database Item values represented in this datablock for any row shown in the datablock.
    I need to validate the correctness of the users change before allowing the database datablock to update the table in the database.
    But a database item in a datablock will represent a value for every row in the table. So how do I access each row value for a database item separately. What is the PL/SQL syntax?
    thanks,
    michelle

    In my situation it was better to use the loop instead
    of a when validate trigger because...Well it was clearly not better to use a loop that doesn't work. I don't understand what you're not clear on about the item and record validation triggers. If you have a specific validation rule for a single field (such as a date that cannot be in the future), that would go in a When-Validate-Item trigger on the date item. If the user enters a future date, your code would display an error message and raise a failure. Raising a failure prevents the item from being marked as valid. Invalid items prevent the record from being inserted/updated. Sometimes you have a validation rule that requires looking at more than one item at a time, such as two items that must either both be NULL or NOT NULL. In that case, you could not use a When-Validate-Item trigger because you can't clear or populate both at once. So then you would use a When-Validate-Record at the block level and if one field is NULL and the other isn't, you would display an error message and raise a failure. Forms is very civil in this respect; we don't throw exceptions around here, but then I digress.

  • My iTunes won't open! It keeps saying 'The iTunes Library.itl is locked on a locked disk or you not have write permission for this file.' Please Help!

    My iTunes won't open! It keeps saying 'The iTunes Library.itl is locked on a locked disk or you not have write permission for this file.' Please Help!

    this may happen on external drives if:
    The external drive was hotpluged (removed) without going the correct "eject" way
    The iTunes library (database) got corrupted
    First Aid for external drive
    Close iTunes
    Unmount (eject) external drive the right way.
    Mount drive again
    Go to Workplace -> right click external drive -> choose "clean up" This will force the filesystem to rescan the file structure of the drive and rebuilding the file system table and journaling file.
    After the tool shows "done" (could last some time depending on size of drive) restart iTunes
    If your iTunes library is on your internal drive, this may happen
    The system was not shoot down correct, e.g. "pulled the plug"
    The iTunes library (database) got corrupted
    First Aid for internal hard drive
    Close iTunes
    Reboot system
    Go to Workplace -> right click external drive -> choose "clean up"
    After the tool shows "done" (could last some time depending on size of drive)
    Reboot system, restart iTunes
    If none of the above fixes your problem, post here.
    Lupunus

  • Not able drop a user in database.. please help

    Not able drop a user in database.. please help
    SQL> drop user xxx cascade;
    drop user xxx cascade
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []
    i tried to clear recycle bin .. it went fine as sysdba but not an user
    As sys:
    purge recyclebin;
    Recyclebin purged.
    SQL> conn xxx
    Enter password:
    Connected.
    SQL> purge recyclebin;
    purge recyclebin
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []
    restart of db not helping out...
    thanks in advance.. help me out..

    You didn't mention your Database and O/S details....
    drop user xxx cascade
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []
    SQL> purge recyclebin;
    purge recyclebin
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16500], [kqdcru], [D], [2], [74],
    [BIN$gwB1YtUSNkHgQKjAVbQi5w==$0], [], []You should probably raise a Service Request for ORA-00600 errors, as Oracle Support needs to look at it.
    Regards
    Z.K.

  • In my ipad mini sound is there but somehow display turned off....please help...how to turn on the display

    In my ipad mini sound is there but somehow display turned off....please help...how to turn on the display

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6u
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.

    Hi all,
    I am using Adobe Pro 11 and on opening a pdf I am getting error 'Insufficient Data for an Image'. Please help and provide a workaround if the solution not there.
    I have already set the preferences to for page view to low zoom settings, and page fit view settings, but it never opens the pdf. Please check and provide a solution asap.
    Thanks in advance!

    Most of the documents have sensitive info on them.  I will have to do some looking for some that i can share, but will get something to upload (dropbox) as soon as I can.
    Thanks for you help.

  • I have not been able to update my fairy farm game for the last 5days as it quit at launch. I am afraid to delete and reinstall the game as i might lose all. Anyone knows if there is an update for this game? Please help. Thanks

    I have not been able to update my fairy farm game for the last 5days as it quit at launch. I am afraid to delete and reinstall the game as i might lose all. Anyone knows if there is an update for this game? Please help. Thanks

    Erdygirl please be aware you are posting to a public forum.  I have removed your personal information from your previous post.
    Please check your account at http://www.adobe.com/ to locate your serial number.  You can find more information on how to locate your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • Been stuck for over  a year, please help me do this

    so i have this laptop with 8gb ram and core i7 as well as 2 hdd (no raid).
    Now i heard about premiere (cs4) and my laptop is ready to take most of the advantage but the hard drive is the bootleneck.
    Basically, all i want is to do few cuts in a video that was filmed by sony hdr-sr11 camcoder in hd 1080 60i settings. Now i heard i need 3 hard drives etc, but at the moment, i only have 2.
    So is there anyway i can do simple cuts in premiere without losing any quality and slowdown in fps or is there any other software that can be better? I really don't want to lose any quality or fps with the g73jh-a2 asus laptop i have?
    i also have ati 5870 video card

    The lowest was 19mb, but was floating arond 30mb. Still that aint good..
    I can't afford the partition magic and i heard its not good to partition after installing windows. I am thinking of fresh install, but if there is a workaround, it would save me tons of time as not installing apps etc.
    For the setup
    1)Can i have the programs in secondary drive? What about just a game or 2?
    2)By projects, do you mean the videos that im going to edit?
    3)what is scratch?
    4) By media, do you mean videos im going to edit?
    Lastly, what about a bit of data? Like <50gb.. Pictures documents etc
    Like, truly anonymous
    Date: Fri, 30 Apr 2010 17:16:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: been stuck for over  a year, please help me do this
    i did hdtune and was the os drive was 100mb-19mb in the end and the
    secondary one was 105-45~mbps
    Those figures are disturbing. For any reasonably modern 7200 RPM disk these figures should be around 120 - 60 MB/s. If it goes down to below 20, something is seriously wrong. Now that may be caused by your partitioning or something else, hard to discern from here, but these results are worrisome.
    Maybe Partition Magic can help you get rid of all these partitions, otherwise a complete reformat and fresh install of OS & programs is all that is left.
    Setup should be something like this:
    C: OS & programs & projects
    D: Pagefile, scratch and media
    It depends a bit on the nature of your projects, your workflow, but in general you set up your disks in such a way that disk accesses are spread over the available disks as much as possible.
    >

  • I must find my find my iphone data for last 1 year please help me

    i must find my find my iphone data for last 1 year please help me

    I confirmed, I have turned on " find my iphone. Here is the error I encountered

  • HT201210 i try to do several times... to recovery my ipad 2 wifi...but it gone off mode..what i must do.. i'm  university student ..i need my ipad for tomorrow lecture..please help me

    i try to do several times... to recovery my ipad 2 wifi...but it gone off mode..what i must do.. i'm  university student ..i need my ipad for tomorrow lecture..please help me

    What version of ios do you have?
    See Texas Mac Man's write up here.
    My iPad won't connect to my home wifi - even though it has previously worked fine.  It says it is unable to connect? - any ideas

  • How to use a vector to navigate my database? please help me.. ty

    how to use a vector to navigate my database? please help me.. ty

    Quite unclear request�
    Can you provide more details?

  • My e-learning consists of 40 slides. I am publishing the project as HTML5, while previewing, when I use the back button on the playbar, there is an audio mismatch. Some other audio is played for that slide. Please help.

    My e-learning consists of 40 slides. I am publishing the project as HTML5, while previewing, when I use the back button on the playbar, there is an audio mismatch. Some other audio is played for that slide. Please help.

    Hi there,
    Can you please share your Captivate version?(Help>About Adobe Captivate)
    Thanks,
    Nimmy Sukumaran.

  • "Unable to Connect" using Firefox and Windows 7. Have tried all the suggestions on this website to no avail. I need firefox for my work! Please help!

    "Unable to Connect" using Firefox and Windows 7. Have tried all the suggestions on this website to no avail. I need firefox for my work! Please help!
    == This happened ==
    Every time Firefox opened
    == Since I downloaded Firefox

    same here my AV is ESET, i already unblock it but no use can't connect to the internet..

Maybe you are looking for

  • Ipod Skipping Songs

    I bought a new 80 GB iPod classic back in January, and I noticed that when I'm listening to it on shuffle, it might get to a song, wait a few seconds and then skip the song. I also tried playing an album on my iPod and it skipped every song. These so

  • Problem with ODI 11g (Extension/Modeler issue)

    After installing ODI and running ODI Studio, I did not get the Connect to Repository window in the left. Extension log says: Error: Not Loaded: Missing dependencies: oracle.modeler Seems like its a missing extension, can anyone help me with this issu

  • How to remove Name space and Software Component in XI??

    Hi Frnds, How to delete Software Component and Name spaces. Please share me any documents. Regards, Raj

  • Editing profile info - website field

    Hello, wondering if anyone can help:  years ago when I set up my skype profile I added also a link to my blog in the 'website' field.  Now I'd like to remove it but surprise ! that field is no longer visible/available when I open the 'edit profile' s

  • Why won't my serial number work?

    I'm trying to set up adobe photshop cs5 extended (student and teacher edition) and my serial number will not work.  It will take the numbers but not the letters so when i try to type it in I'm leaving two serial number boxes open and i can't move on.