make text_item (box) appear in red if the field is nulll

Start
Select eiqano, edrvno
in: key_block.eiqano,:key_block.drilno
of pexmast
where empno =: key_block.key_item;
exception when no_data_found then
Message ("No. Record for this key value '");
end;

Start
Select apprnum
in: key_block.stcaprno
of tblrefstaff
where staff_no =: key_block.key_item;
exception when no_data_found then null;
end;



It's the new code I wrote for new fields that I added to my existing form. !!!
Now I want to add a code in such a way that if specific information is not available for one of the fields VBA text_item box shud appear in red... ! ....
I wud b very happy if some on his cud help out me!

Hello

Try the following code.

PROCEDURE Valid_Employee IS
     Str_Temp VARCHAR2(50) := NULL;
     CURSOR Cur_Test IS SELECT EMPNO FROM PAYMENT WHERE EMPNO = :KEY_BLOCK.KEY_ITEM;
BEGIN
     IF :GLOBAL.MODE = 'M' THEN
          OPEN Cur_Test;
          FETCH Cur_Test INTO Str_Temp;
          CLOSE Cur_Test;
          IF Str_Temp IS NULL THEN
               IF SHOW_LOV('EMP_LOV') = FALSE THEN
                    RAISE FORM_TRIGGER_FAILURE;
               END IF;
          END IF;
          GO_BLOCK('');
          EXECUTE_QUERY;
          GO_BLOCK('');
          EXECUTE_QUERY;
     END IF;
END;

Kind regards

Manu.

If this answer is useful or appropriate, please mark. Thank you.

Tags: Oracle Development

Similar Questions

  • Box appears not to if the field is null

    I'm running Reports Developer 10.1.2.3 locally. Then I forms and reports Services on the application server 10.1.2.3. When I run the report locally by the developer reports if data of a field is the text box appears in any case, but when I save the report on the application server and re - compile there and then run only the fields that have data appear with the box around them.

    I saw another post and the fix was to make sure that all the fields had 'fixed' horizontal elasticity. I have both vertical and horizontal elasticity fixed value.

    Any help is appreciated!
    Cathy

    Published by: cmcantie on February 12, 2010 12:18

    Hello

    This is a known bug: lines of the grid in NULL values are not displayed in the output PDF after 10.1.2.3 valuation (Doc ID 601432.1)

    A unique group of patches exists and is available on "My Oracle Support" (6848416).

    Concerning

  • A box appears whenever I start the laptop with the word CyHidWin to the top.

    Original title: CyHidWin

    A box appears whenever I start the laptop with the word CyHidWin to the top.  I don't know what it is.  I can't cut, max, delete or move.  It covers my icons... no one knows what it is and how to get rid of?  I got this laptop for 7 months and most of the time that this box comes up.

    original title: CyHidWin Popups on every reboot.

    Hello

    -Were there any changes made to the computer before the show?

    -What is the brand and model of your computer?

    I would suggest trying the following steps and check if it helps.

    Method 1:

    To help resolve the error message, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Please note: After troubleshooting, be sure to start your computer in normal mode by following step 7.

    Method 2:

    I suggest you run Microsoft Safety Scanner to make sure that your computer is virus-free.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Safety Scanner WARNING: There could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.

    Hope this information is useful.

  • Why of opaque boxes appear in place of the entered text (Firefox ver. 34/Ubuntu 12.04) in the browser window?

    There was a similar question posted earlier, but this isn't exactly the same thing. When all 'text' has been reached and appears in the URL address box - it is characterized by rectangular, green, black, or gray boxes (instead of letters, numbers, etc.). I can always navigate normally using the browser window, the text always appears in this format "hidden". In safe mode does not change the appearance. I updated the software, Firefox, using Linux (Terminal).
    This problem is specific to Firefox only... no other browsers show this way.
    It has been a consideration for a while, now. In fact, I got to use another browser, although I have Firefox in favour (including Linux) and wish to use it.
    Thank you.

    Sorry to hear that you have been waiting so long! Could you check this thread started by another user of Linux and see if workaround it helps you on your system:

    How can I stop firefox ffrom blocking URLS

    (Workaround was to switch the preference gfx.xrender.enabled to false).

  • the hyperlinks used to appear in red when the web page loads, now I have to hover to show them, it's before the upgrade.

    For example, before the upgrade, I used to connect to jud.ct.gov. Links hyperlinks to various publications and Web sites internal to jud.ct.gov appeared in red so that I could easily see and choose the one I wanted. Now, they appear white and I do not see them unless I have pass the mouse over the element. At this point, it turns red so I can see which link to click.

    I just checked the menu options in XP. It is identical to Windows 7.

    Comments: enter config should be browser.anchor_color. Just right-click on it and reset.

  • Why MSE appear in red in the start menu

    Running MS Windows 7 Home Premium SP1

    Press windows key and start menu appears

    all normal background except the last two items:

    Microsoft Security Essentials and

    All programs

    they have a red background

    Why?

    What is the question? - http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/why-are-programs-in-start-menu-is-shaded-red-after/78cfaf5b-df7a-42e5-ad5b-e19499acac91 that you have just installed it. or are they red permanent shady and remaining so after their execution a few times?

  • Dialog box appears and says that the application is not installed for this user, and rerun Setup.

    I checked the properties of Microsoft Office 7 Ultimate and it seems to me that the single play button is enabled. My permissions of the user are writing & and I'm supposed to have administrator rights.
    I don't know if I should try to reinstall or what.  I'm typing this on my XP Pro with Windows 2003 machine, which is networked with my other computer where Office 7 Ultimate does not work, even if it was this morning.  Updates from Microsoft and I was online with Office Online right before you have the problem.
    I just want to know if anyone has had this problem.
    Thank you.

    Hello

    Try a system restore:

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    ---------------------------------------------

    You can also check with the experts of the Office here:

    MS Office discussion groups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx
    And here:

    Office newsgroups
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.Setup&cat=en_us_642d5640-c1ba-43C3-A224-b3ec1473346c&lang=en&CR=us

    I hope this helps. Rob - bicycle - Mark Twain said it is good.

  • O.E.8 message box appears: trying to open the box, using Windows XP Home Edition

    Microsoft Visual C++ Runtime Library

    Program: c:\ProgramFiles\

    Prospects Express\msimn.exe

    The application requested execution to terminate in an unusual way.

    For more information, contact the application support team.

    ----------------------------------------------------------------------------------------------

    Try to download Logitech infor and received a message not enough space (?)

    I went to add/remove and took out what I thought would work to allow more space.

    Instead, I have screwed up things and now need help.

    It would be more appreciated in kindness, especially since I don't know much about computers

    (it's obvious)

    If the OE does not start, then try deleting folders.dbx.  See www.oehelp.com/OETips.aspx#7

    If you need more disk space, click Start | Programs | Accessories | System Tools | Disk Cleanup and that should free up space.

    Also you can save your messages (www.oehelp.com/OEBackup/) and then make a file | Folder | Compact everything and that should free up space in OE.

    Steve

  • Recently, a box appeared labeled 'status' with a message asking me to insert a disk to install this program. How can I remove this? It aims to prevent the addition or deletion of any other program.

    The toolbar contains the word 'status '. The box says "Please wait while Windows cofigures status. There is an option 'Cancel', but if I click on another box appears telling me that the only required information is on a drive which I need to insert. I don't have it. The requirement appeared about a month after the previous 2 years of normal use.

    Hello

    This message is nornmally to do with the HP printing software

    read this

    http://h30434.www3.HP.com/T5/printer-all-in-one-software-and/HP-Photosmart-premium-AIO-error-message-quot-Please-wait-while/TD-p/57119

    Try the HP froums support

    http://h30434.www3.HP.com/

  • When to wake up the virtual machine of the suspension of the next dialog box appears?

    Hello and thank you...

    I use VM Fusion 4.1.3 on a MacBook Pro mid-2009 with the Mountain Lion. Since I installed VM Fusion 4, the following dialog box appears whenever I wake the machine of suspension. I click ok and everything works fine. I would like to pass it if possible and I must emphasize that everything works perfectly after I get back okay. Any help would be appreciated.

    Thanks in advance and I have attached a screenshot

    Well, you could do as suggested in the message!

    Or add the following line to the .vmx config file.

    buslogic.nodriver = "FALSE"
    

    Take a look on: modifying the .vmx for your merge file< virtual="" machine="">

  • Problem when moving layers a bounding box appears

    I downloaded Photoshop CS5 and currently using the trial version of it. I will buy it, but until I do theres something I can't understand...

    When I use the move tool to move a layer, as soon as I start dragging with the mouse a grey box appears around all on the layer. As soon as I release the mouse button the area disappears. It of almost like layer edges are activated when you move a layer and then turned back off again.

    Ive looked on the internet but had no chance of finding something similar. It is very annoying and makes it difficult to properly position things. All ideas are welcome!

    Thank you

    move.jpg

    Scheck out"DisableDragBoundingBox" on this site:

    http://www.Adobe.com/support/downloads/detail.jsp?ftpID=4965

  • How can I make a box autopopulate a text field

    I have 2 text fields named MailingAddress and GarageAddress.

    I would like to have a check box next to my MailingAddress the field when checked would be autopopulate my GarageAddress with the value of MailingAddress.

    I scrounged around forums and cobbled this together (with my very limited knowledge of JavaScript)... but get a syntax error.  I'm sure it's something obvious... If you understand JavaScript!

    Any help would be greatly appreciated

    var aMailing = this.getField ("MailingAddress");
    var aGarage = this.getField ("GarageAddress");

    If (this.getField (event.target.name) .value is 'Yes')
    {
    copy the mailing address to the address of Garage;
    aMailing.value = aGarage.value;
    }
    aGarage.readonly = true; do GarageAddress readonly;
    }

    on the other

    {
    aGarage.readonly = false; clear readonly
    this.resetForm ([aGarage.name]) / / reset GarageAddress
    }

    You have syntax errors in your code. Also, it seems that the logic of your code is reversed. You copy the value of GarageAddress to MailingAddress, instead of what you have described. I suggest using this code (as the MouseUp event of the checkbox) instead:

    var aMailing = this.getField("MailingAddress");
    var aGarage = this.getField("GarageAddress");
    
    if (event.target.value == "Yes") {
        // copy Mailing address to Garage address;
        aGarage.value = aMailing.valueAsString;
        aGarage.readonly = true; // make GarageAddress readonly;
    } else {
        aGarage.readonly = false; // clear readonly
        this.resetForm([aGarage.name]) // reset GarageAddress
    }
    
  • strange behivor on public pages with automatically filled the field

    Hello

    I created a page (APEX 3.0) where I have two field, name/wwid, name is a LOV, when I choose the LOV NAME, the page is automatically populated with wwid field, I followed this thread (used AJAX...) and it works fine as LONG AS I'm not the public page, but when I make it PUBLIC, it no longer works, the field wwid always returns null it

    Re: AutoFill fields

    Does anyone have a similar experience or ideas/suggestions?


    Thanks in advance

    Mike

    Of course

    In your javascript, you have something like this:

    get var = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getDet',0);

    The value 0 is the page number. You can edit your public page, and then it would be pointless to have a public page 0.

    Try and tell me if it worked.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How to make a text box appear in a PDF file in InDesign CC when the cursor rolls over another area of text?

    I'm doing a text box appears in a PDF document in InDesign when the cursor of the user hovers over an another textbox, and I want it to disappear when the cursor moves off the coast of the first text box. I tried the following with adjustment of various, and it does everything just for me.

    Display a different button on turnover

    You can create a hotspot in which clicking or mousing over an object contains another object. To do this, create two buttons, hide one of the buttons and use the show/hide button action to show and hide the button target.

    • Create an object to use as the "source" button. In the buttons Panel, click the icon of the object to convert to A button.

    • Place the image you want to use as the button target and convert it to a button.

    • Select the target image and select hidden until this that triggered at the bottom of the Panel buttons.

      The image must be hidden in the exported document that can be displayed when the "source" button is clicked or wriggle on.

    • Click the source button and create two different actions, one for show the image target and target the other to hide the image.

      If you want the image to appear when the mouse is over the button source, use events on Roll Over and On Roll Off. If you want the image to appear when you click on the source button and disappear when you release, use events on a click and release. In both cases, use the show/hide action buttons to show or hide the target button. See the interactive buttons.

    • Use the Preview Panel to test the buttons.

    Should work...  On your last point (not 12?) I get the feeling that you have exported your doc as Adobe PDF (Print)? You must instead use (Interactive) Adobe PDF...

  • You are not connected to the internet! You want to work offline or try again? There is also a box with a red x and the message reads unplugged network cable.

    Unplugged network cable?

    Recently I get this message then on the line. You are not connected to the internet! You want to work offline or try again? There is also a box with a red x and the message reads unplugged network cable. It is very aggravating. Can someone tell me how to solve this problem? It might have something to do with my firewall? I recently downloaded mozzilla firefox if I could play words with friends, because IE would not work on the game.

    Hi LouisteanGriffin,

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Follow these steps:

    Step 1: Start the computer in safe mode with network and check if the problem persists.

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    Step 2: If the problem does not persist in SafeMode with network, perform a clean boot to see if there is no conflict of software like clean boot helps you eliminate software conflicts.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

    Method 2: Temporarily disable the security software.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 3: Follow the steps in the article.

    How to troubleshoot a network home in Windows XP

    Windows wireless and wired network connection problems

    For reference:

    How to reset the Protocol Internet (TCP/IP)

Maybe you are looking for

  • All listings sites in

    Hi allI'm getting ads on all the sites that I opened. And this page is still my home page no matter what I do to change it.I tried to disable all the add ons and extensions. Moreover, it happened without me adding an extension or an add on. in the pi

  • How to connect Apple TV in again internet new home?

    Responsible for Apple TV works well in the old House now in the new House and not allowing me not not in the settings to connect to the wifi only showing me landscape landscapes

  • Firefox 4 fonts is screwed up after hibernation.

    Whenever I start Firefox it works perfectly fine, but when my computer into hibernation the get fonts messed up as shown below: Image

  • Satellite P500/020 is too quiet

    I just bought a new Satellite P500 and at full volume, is not yet strong enough to watch a movie, unless I have use headphones. The audio output is also very poor, I have some external speakers that my old laptop will distort easily, this one wont.I

  • Automatic updates or something... at 3:00?

    I went to every conceivable program I can think of that has an automatic update feature, including updates of the system and can not understand why I have this problem. Most often, but not exclusively, on Saturday morning at precisely 3:00 IN THE MOR