Only executing general page proces when action of button is validated

I have a standard form and the standard buttons, create, delete, cancel and apply changes. Each button can have a condition, I checked those but I can't really do there what I wanted to do. So I looked to the process and found a plsql block could be used that returns a boolean.
So I came up with the following code, which does something, but isn't very much use(see below). The idea was that if I could only return one boolean then depending on the action it could be set to true or false, and return the boolean so the process could be done, or not. As I said, it does something, but not quite what I thought it may do, The only other way I could think of is to have separate processes for each button, but surely they wouldn't have included such a general process with those actions without a way of saying this action should only be executed then, this then and so on.
This is the code block, for whatever clarification it could bring:
DECLARE
-- booeland bestaat in plsql maar niet in sql
Waard varchar2(20);
teller number;
ingegevencode varchar2(1);
ingegevenapplicatiecd varchar2(25);
BEGIN
ingegevencode := 'S';
ingegevenapplicatiecd := 'Zesta';
select count(*) into teller from mailalertextbis where code = ingegevencode and applicatiecd = ingegevenapplicatiecd;
if teller >1 then
dbms_output.put_line('Er is een fout, deze mailalertbestaat 2 of meer keer');
waard := 'fout fout fout';
elsif teller = 1 then
if updating then
-- de bedoeling is dat if exist, door middel van select then
-- retrun true, otherwise false
waard := 'true';
elsif deleting then
-- then if not exists return false otherwise true
waard :='true';
elsif inserting then
waard :='false';
end if;
elsif teller = 0 then
if inserting then
waard := 'true';
elsif deleting then
waard := 'false';
elsif updating then
waard := 'false';
end if;
end if;
waard := 'niks ingevuld';
dbms_output.put_line('De waarde van waard is: ');
dbms_output.put_line(waard);
-- then if not exists return true otherwise false
END;

Can somebody please address this?
Thanks,

Similar Messages

  • ADF/JSF page loads when any command button is clicked

    Hello All,
    I am lost in the ADF/JSF page flow (using Jdev 10.1.3). Following are the tags (in order) in my page;
    (WHEN THIS PAGE LOADS, IT GOES TO THE DATABASE TO GET VALUES (for the drop down lists that will appear on the page); THIS SHOULD HAPPEN JUST ONCE AND AT THIS POINT)
    <f:view>
    <afh:body>
    <afh:html>
    <af:form>
    <af:panelpage>
    <f:facet name="contextSwitcher">
    <af:panelHorizontal> has a af:commandLink </af:panelHorizontal>
    </f:facet>
    <f:facet name="messages">
    <af:messages/>
    </f:facet>
    <af:panelform>
    <h:panelGrid columns="2" cellspacing="14">
    has 2 panelgroups (one group has *2 SelectOneChoice lists (that need to be populated by fetching data from database* and the other group has 2 CommandButtons - 'Go' and 'Cancel") (GO BUTTON SETS THE SHOWPANEL() TO TRUE)
    (WHEN GO BUTTON IS CLICKED, THE PAGE GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD (action="#{muBean.doWork}" )THAT IS ASSOCIATED WITH GO BUTTON ACTION SHOULD BE CALLED)
    </h:panelGrid>
    <h:panelGrid columns="2" cellspacing="14" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 inputText fields
    </h:panelGrid>
    <af:table var="someTable" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has a bunch of af:columns
    </af:table>
    <af:panelHorizontal rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 af:commandButtons - submit, save, add row
    (WHEN submit or save or add row BUTTON IS CLICKED, THE PAGE KIND OF LOADS AND GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD THAT IS ASSOCIATED WITH submit/save/add row BUTTON ACTION SHOULD BE CALLED)
    </af:panelHorizontal
    </af:panelForm>
    </af:panelPage>
    <!-- Footer -->
    <jsp:include page="/pages/includes/footer.jspx"/>
    </af:form>
    <f:verbatim>
    <script type="text/javascript" src="../script/tree.js"></script>
    </f:verbatim>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    _*why is it that when the command buttons are clicked, the whole page is loaded? Only the methods associated with the action (action="#{newMapRequestItem.addARow}" ) should be called.*_
    _*IS THERE A WAY TO AVOID THIS WITHOUT USING PARTIAL PAGE RENDERING ?*_
    _*DOES MY TAG NESTING LOOK OK?*_
    Edited by: user12054715 on Mar 24, 2010 12:00 PM

    Can somebody please address this?
    Thanks,

  • Firefox in Mac OS X opens home page twice when clicking 'home' button

    Using Firefox 3.6.3 on Mac OS X 10.6.3
    When clicking on 'Home' button in the browser, the home page loads in the current tab, but Firefox also opens a new tab and opens the home page there too.
    Not disastrous, but quite irritating.
    == This happened ==
    Every time Firefox opened
    == From 1st use

    It could just be that the home page setting was accidentally changed to this. Firefox can be set to have multiple tabs open as the home page. Try resetting your home page - [[How to set the home page]].

  • Acrobat 8.1.4 only prints 1 page when I select "all"

    Hi all,
    I'm hoping you can help me. Just spent 27 minutes on hold with Adobe tech support and gave up.
    I have an iMac running OS 10.5.8 and had successfully used other versions of Acrobat. I bought a ScanSnap printer and it was bundled with Adobe Acrobat Pro 8.1.4. Installation seemed to go fine, but now when I try to print a multi-page document, it only prints one page, even when I check "all" on the print menu.
    Also, when I try to click on print prevue, it says "Prevue is not supported." That's new, too.
    So far I'm not thinking this is such a great bargain, even for free! Can you help?
    Thanks,
    Kathy

    Print preview is not supported any longer. I think it is due to the fact that both use pdf technology and there may be a conflict.
    As to why it only prints one page rather than all, that is a hard one. You could try deleting the printer driver and re-installing the driver to see if that helps.

  • Photo Smart 6510e ALL IN ONE SERIES. Only prints one page.

    photosmart 6510 with windows 7. Had problems so reinstalled and now only prints one page even when set to print all

    Hello bluebell21,
    Welcome to the HP Support Forums!
    I understand that you are having a printing issue with the Photosmart 6510 since you have re-installed the printer software.
    I would first suggest to run the Print and Scan Dr. This look into drivers, software and communication problems that could have caused this. Let me know the out come, what passes, fails, is fixed, etc.
    Cheers,
    JERENDS
    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 the left of the reply button to say “Thanks” for helping!

  • When I print from my pad it only print one page at a time, why?

    Why can I only print one page at the time when using the iPad?

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • When I export to Word, only the second page is editable.  Page one comes in as a picture.  Help?

    I'm using Adobe ExportPDF.

    Here's the file I'm working with.  See if you have any luck.
    Tad <removed by admin>
    Date: Mon, 14 Apr 2014 14:22:31 -0700
    From: [email protected]
    To: [email protected]
    Subject: Re: When I export to Word, only the second page is editable.  Page one comes in as a picture.  Help? When I export to Word, only the second page is editable.  Page one comes in as a picture.  Help?
        Re: When I export to Word, only the second page is editable.  Page one comes in as a picture.  Help?
        created by StacySison in Adobe ExportPDF - View the full discussion
    Hi Jon,
    Try placing your curser in the middle and click on that page a few times. Often this will make it available for editing.
    Let me know if that works!
    Regards, Stacy
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6298150#6298150
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: When I export to Word, only the second page is editable.  Page one comes in as a picture.  Help?
    To unsubscribe from this thread, please visit the message page at Re: When I export to Word, only the second page is editable.  Page one comes in as a picture.  Help?. In the Actions box on the right, click the Stop Email Notifications link.
          Start a new discussion in Adobe ExportPDF at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Well, I rebuilt the entire workbook... that was a few months ago and so far, the problem hasn't resurfaced. It really wasn't fun to do, but whatever glitch there was in the file, I eliminated it.
    I think I should mention that I am using Office v.X, NOT Office 2004. I got a new Intel iMac this week and yesterday when I opened up my files, it opened up the test drive (a JOKE of a program if you ask me) Anyway, some of the very minor issues I had with Office v.X were solved in the 2004 version. (When opening up large multi worksheet files without Excel being already opened, the tabs have white text) Anyway, I am still going to wait for the universal version to come out, but it seems that the newer versions may have fewer glitches (as is to be expected)
    At any rate, best of luck to you!

  • When downloading a pdf, the print command show a document in the preview but only prints blank pages

    When downloading a pdf and using the print command, it shows  the correct document in the preview but only prints blank pages.  If I use the save command and try to open with Acrobat 11.0.07, it says it wasn't correctly decoded and can't open it.  If I do the same thing on my old Macbook (10.6.8) all works fine from the same website with the same document.  Any ideas?
    D

    This article maybe help to you, change pdf file type to other application like adobe reader, See:
    * https://support.mozilla.com/en-US/kb/Managing%20file%20types

  • How to get the Organizer page to install when only the Editor page appeared after Elements12 installation?

    I  Can't figure out if it is possible to retrieve/install the Organizer page after only the Editor page installed on Elements 12. If it is possible, how do I do it?

    When I launch PSE 12 directly I do get the "welcome" screen first. If I then click on the Organizer box it gives the moving line for a bit, and then nothing more: no Organizer screen ever appears. However when I click on the Editor box the Editor screen does come up after the moving line starts.
    By the way, I've long used PSE 10, and that still works for both screens, so I'm now having to jerryrig the post production process by using the Organizer screen from version 10 to access my photos and then drag them to the Editor screen from version 12 !
    I bought PSE 12 because it accomodates/processes/edits in  RAW, where version 10 doesn't. I sure don't want to have to pay for version 13, and Adobe chat no longer supports version 12, so any help you can offer would be wonderful !!!
    By the way -- in addition, a very useful  plug-in (Nik Collection) that i've come to love to use with version 10 doesn't appear with version 12's Editor screen at all. So if you have any thoughts about how to fix that I would really appreciate that too !
    Thanks in advance. -- Jessie
    Sent via the Samsung Galaxy Note® II, an AT&T 4G LTE smartphone

  • I can create a bookmark but when I tap on it the website does not appear only a blank page with horizontal lines

    I can create a bookmark and it appears as favourite but when I tap to open only a blank page appears with horizontal lines

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    :[[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Why do I only get 2 pages when export PDF to Word?

    I have a PDF document that was created from Word (probably 2003). I was asked to convert this document back to Word. When I do this, the progress bar shows that it's converting all 16 pages, but when I open the file in Word, I only have the first 2 pages. I've tried adjusting the layout options and not exporting pictures (don't think there are any in the PDF). Does anyone know what I can do to get all the pages to export?

    Hi Bill,
    I can't post the file because it is company confidential.
    To answer your questions:
    I tried both File>Export>Word document and File>Save as and got the same results for both.
    The Document Properties file might contain the clue to the problem. Here's what it contains:
    The original application the file was created in is Microsoft Word (version not defined)
    The PDF was created with doPDF Desktop Ver 5.2 Build 225 (Windows XP)
    The PDF version is 1.4 (Acrobat 5.x)
    It's not a tagged PDF
    Would I be right in assuming that the problem is likely due to how the PDF was created?
    Thanks.

  • When I click a link only an empty page opens, now the link does not open anything at all

    when I click a link only an empty page opens, now the link does not open anything at all

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • When I run the cursor over a template it shows several pages but when i select the document it only brings up the first two pages to edit. How do I see them all?

    When I run the cursor over a template it shows several pages but when i select the document it only brings up the first two pages to edit. How do I see them all?

    Skimming the templates in the Template Chooser shows you all of the pages available in the template once you open it. You can insert the one(s) you want, even more than one of any of them. Most users don't want or need all of the different pages, especially when they start the document.

  • Only the home page is visible when looking at my web site on apple products.

    Only the home page of my web site is visible when you use an Apple platform product. Non of the links work.
    The web site works fine on Windows ei but not Chrome.
    Ideas??

    A textbox with this text is covering the links :
    2012 International Qualifiers
    2013 2nd Place Mid-Atlantic District Quartet
    Move it down, or make it smaller.
    Read this for an explanation :
    http://www.wyodor.net/Tutorials/iWebDemo/z-Index.html
    Important quote :
    keep objects within the bounderies of the layer they belong to.

Maybe you are looking for

  • How to create this chart in Numbers?

    The sample chart such as following web site: http://gallery.mac.com/chouwenpo#100008/-E5-9C-96-E7-89-87-203&bgcolor=black I want to create this chart by "line+symbol chart". The x-axis need to be an "interval". Please, help me if you know how to do t

  • Artists and Compilations and AppleTV, oh my!

    Hopefully this is an easy one: I've got Compilation albums with many different artists. In iTunes, I have Checked "Compilation" and none of the artists appear in the "Artists" view. I can not get this same behavior in the Apple TV though. All of the

  • Variants for AT SELECTION-SCREEN..

    how many variants r there for AT SELECTION-SCREEN event??? like AT SELECTION-SCREEN OUTPUT       AT SELECTION SCREEN ON FIELD howmany r thr?? and can any1 explain the usage of these completely wid examples?? regards ziden

  • Displays showing a yellow checkerboard pattern.

    2010 Mac Mini, 10.7.3, dual DVI displays. - Several times a day, it shows a yellow checkerboard pattern in some windows. So far, it's appeared in Chrome, Entourage and Excel 2008. The problem occurred both before an after we upgraded the RAM. These c

  • KeyEvents  getting buffered

    Hi All, I am facing the following problem : My midlet makes a network connection and while the connection is being made, I make the midlet paint a small rectangle and image frames to show some "animation" going. Now when the Animation and Network con