Boolean condition on a tab does not

Hello!
I have a tab that should only appear if a recording is in the database. I use a condition "PL/SQL function body returning a Boolean" by the following:

DECLARE
T1 varchar2 (20);
BEGIN
Select the GROUP in t1 from pl_department where userid =: APP_USER.
If ((t1 = '-') OR (t1 is null) OR (t1 = ") or (t1 = '%' |)) ' %')) null then
Returns false;
on the other
Returns true;
end if;
END;

If no data is found in the database, I get an error at the top of my page "invalid function body condition: ORA-01403: no data found".
As you can see I tried to check the 4 possible different values, but nothing works.
Any ideas on what I can try?
Thank you!
T

Published by: 73pixieGirl on December 16, 2008 06:34

Hello

You can better use the Exists condition (SQL query returns at least one row)
You would put in the expression 1: select the GROUP from pl_department where userid =: APP_USER.

The problem you are experiencing, it is that your code is entering the exception. If you really want to keep your code, you can adapt it as:
DECLARE
T1 varchar2 (20);
BEGIN
Select the GROUP in t1 from pl_department where userid =: APP_USER.
If ((t1 = '-') OR (t1 is null) OR (t1 = ") or (t1 = '%' |)) ' %')) null then
Returns false;
on the other
Returns true;
end if;
EXCEPTION WHEN NO_DATA_FOUND THEN return false;
END;

But I recommend you my first suggestion.

Kind regards
Dimitri
----------------------------------
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/
AWARDS: Don't forget to mark correct or helpful messages on the forum

Tags: Database

Similar Questions

  • How to conditionally display a tab (or not) from APP_USER?

    Hello

    I want to put a condition on the display of a tab based on the value of APP_USER. There are two columns in the table and APP_USER must exist in one of these two columns so that the tab to display. If APP_USER is not in one of these 2 columns, the tab does not appear. These 2 columns are different management levels, and if the user is not a nursery, I don't want the tab to display.

    Another requirement: APP_USER will be [email protected], but the values in the table are only firstname.lastname. So, I need to do an APP_USER rtrim to remove @email.com.

    I tried several options, but can't seem to do things. Suggestions?

    Hello

    Create diagrams of the authorization and use for the tab.

    You can see example how it works in a demonstrative application if you install in your workspace.
    He sample that the tab is hidden if you do not have admin Admin user.

    To install app demo:
    Home > create an Application and select Demo Application

    To get ending far try
    SUBSTR (v ('APP_USER'), 1, instr (v ('APP_USER'), ' @')-1)

    BR, Jari

    Published by: jarola on January 13, 2010 01:26
    typo

  • Since the upgrade of my new tab does not work, I press on the + icon and nothing

    Since the upgrade of my new tab does not work, I press on the + icon and nothing

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables certain parameters, disables most Add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • I upgraded to latest version firefox 29,0 in windows machine 7. All the user interface looks very good. Undo close tab does not work for me. Is that not been addressed?

    Undo Close tab does not work in windows 7 for firefox latest version 29,0

    You can do this via CTRL + SHIFT + T as well.

    You can try to start Firefox in Mode safe to see if Firefox works correctly without error? You can start Firefox in Mode safe below:

    • Windows/Mac: choose Help > restart with disabled modules
    • Linux: run firefox-safe-mode in the Terminal/Konsole

    If Firefox opens fine with no problems, it is probably one of your extensions that is causing the problem. You can reactivate your modules one by one until you find the one that is causing the problem to be re-activated.

  • new tab (+) does not work after the upgrade to v 23.0.1 forefox

    I had firfox version 22 I guess... Now, today morning I upgraded to v 23. It displays a message from one of the plug-in is not compatible with wud and therefore be disabled. now later I still once downloaded the plug in to check if its works or not but TI worked (as I had already guessed), or its display in modules or plug-ins.

    Now I don't get why the new tab does not work. Not at all. Its so very annoying. I googled the question and tried to reset firefox and the new tab in subject parameter: config. But nothing helped.

    I think that its because of this plug-in I've read somewhere that the parameters can be getting replaced by one of the defective Add-ons.

    Help, please.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    You can use the SearchReset extension to reset preferences to default values.

    Note that the SearchReset extension runs only once and then uninstalls automatically, so it will not appear on the page "> Firefox Add-ons" (topic: addons).

    If you do not keep the changes after a reboot or have problems with preferences, see:

  • The new tab (+) does not work, or the file/new tab feature

    The new tab (+) does not work. The function of the file/new tab does no more work. Both had worked correctly until noon today. I haven't added any software, plug-ins or extensions today, I do not have the Ask toolbar. I tried several of the suggestions made on this site, nothing helps.

    This problem may be caused by an extension that does not work in the current version of Firefox.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.
  • Recently closed tabs does not work for me

    Recently closed tabs does not work for me. When I go to history-> recently closed tabs is not available and the shortcut does not work. It happened a few weeks ago, and when it happened first, the shortcut would open the tabs in the weeks earlier. I can't find any information on this and would like to see it fixed.

    There are other things that need your attention on the updated the prefs that shows in your list of details of the system.

    Reset the general.useragent.compatMode.firefox to false, and all prefs network.http on the topic: config page.

    What is the value of the browser.sessionstore.max_tabs_undo pref?

  • How to stop a site tabs does not happen at the start of Firefox?

    How to stop a site tabs does not happen at the start of Firefox?
    I inadvertently allowed Firefox to save tabs settings when I quit Firefox. Now, every time I start Firefox the tabs site continues to return. How can I cancel this site tabs to open when I run Firefox?

    See:

    • Tools > Options > general > startup: 'When Firefox starts': 'Show my home page' or 'display a blank page '.
    • Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
    • Use "Firefox > Options" instead of "tools > Options" If the menu bar is hidden.
  • The botton to open a new tab does not work. How can I solve this problem?

    next to the tabs, one that opens a new Quick tab does not work, also the ctrl + T keyboard command does not work as low. The only way to open a new tab is right on the mouse, but still click on a link, I can not open a new empty tab.
    Thank you

    Try to uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and the current version of Firefox.

  • printer properties tab does not

    I have a Photosmart c309a, Windows 7 64 bit and a network connection Wireless through my AT & T router home.   When you try to print by using the online educational software "Blackboard" program of somethig, by clicking on the Properties tab does not give me the properties page.  It does not work when I use Microsoft Word 2010.  Any suggestions would be greatlynappreciated.

    Thank you.

    Joe

    Solved the problem.  Blackboard is not compatible with IE 9.  I used Chrome and IE9 in compatibility mode, and everything was good to go.

    Joe

  • applications tab does not appear

    the applications tab does not appear. I changed the language to US English; even in this case it does not appear. pls help. Thank you.

    Try tab missing from the desktop Adobe Creative Cloud application applications

  • App tab does not load

    My App tab does not load in the drop-down list creative cloud. I got the spinning wheel of death. Someone please help!

    Screen Shot 2016-07-11 at 6.04.13 PM.png

    Try Adobe Creative Cloud desktop application does not open or shows a spinning wheel of progress

  • I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    An error keeps poping up on creative cloud without work and it's really annoying that I can't use it anymore or even try anything at all.

    Help, please

    Using creative cloud | Download error in the applications tab of Creative Cloud Desktop Application

  • Creative cloud office 'Apps' tab does not work

    I bought the license to CC a couple of days, but since installing I couldn't install/manage applications. Office CC 'Applications' tab will not open correctly only saying "download error".

    I got the CC on this computer in the past by another employer, but I uninstalled it when the project took end. I never encountered this problem with the CC of this time. I also got CS5 on this computer all the time and in the past with CS5 and CC has not caused any problems.

    I have now uninstalled and reinstalled this new CC a couple of times but the 'Apps' tab does not always work.

    I then also uninstall the CS5 and to be sure, I removed manually all the Adobe stuff like this guide: Re: how to remove and cancel the creation could f...

    After that, I reinstalled the CC but always the 'Apps' tab does not work. May be there is always something left (on this computer) the subscription of Creative previous cloud (another license) that is causing the problem with this new CC subscription?

    I have a Mac Book Pro with Mac OS X 10.9.5

    If you have uninstalled but did not follow upwards with the help of the vacuum of CS then you have probably some remains that could interfere with other facilities.  If you uninstall, then use the cleaning tool, you may have better luck.

    Adobe Creative Suite cleanup tool

    helps resolve installation for CS3 thru CS6 and creative cloud problems

    http://www.Adobe.com/support/contact/cscleanertool.html

    In addition, it should have been without having to uninstall the original CC that you had with another employer.  You must only have signed out of it, and then you could connect you with another subscription thereafter.

  • My creative cloud, 'Applications' tab does not load, how do I fix this so that I can update my Adobe programs for current versions?

    My creative cloud, 'Applications' tab does not load, how do I fix this so that I can update my Adobe programs for current versions?

    Please take a look at this document:

    Does not open App | Wheels of progress turn continuously

Maybe you are looking for