condition on Page Button - delete and save

I have the condition do not delete are modifications of the update on the records that are related to other records in the table so that those who don't get orphan. I'm doing it with the PL/SQL function returns Boolean.

I code like below.
< code >
Declare
v_found NUMBER: = 0;
BEGIN
SELECT count (*) in case v_found
WHERE the lower (REGION) as lower(:P21_ID);
IF v_found = 0 then
RETURNS true;
ON THE OTHER
RETURNS false;
END IF;
END;
< code >

But
The State does not seem to be put right and I always see the button DELETE and save buttons on the page. Am I going wrong somewhere?

Hello

Did you try to write like query and use condition is not?
And you use as no %

SELECT 1
FROM cases
WHERE lower(REGION) like lower('%' || :P21_ID || '%');

Kind regards
Jari

Tags: Database

Similar Questions

  • Impossible to add pages to PDF and save it with the same file name

    I often have to add pages to a PDF to another PDF.  I used to have no harm to add pages to an existing registered PDF then pushing the record button and that is.  Last month, after I add the page, then try to save the PDF file, I am now getting the error message "the document could not be saved.  The file may be read-only or another user can open.  Please save the document under a different name or in a different folder. »

    Now, I have to rename the PDF file I added pages and go back and remove the old PDF that has no pages added, which is a bit frustrating.  I use Acrobat X on Windows 7.

    Any ideas how I can troubleshoot or solve this problem?

    Make sure that the preview in Windows Explorer option is disabled.

  • After update will not completely re-checkin for update and then reloading the firefox update page. (all deleted and the problem persists).

    Firefox updated as I wanted. Now, each I reopen the application is going through the screen of loading/updating before the opening of Firefox. When she opens the Firefox update page loads. I emptied everything (cache, connections, history, etc.). It will not stop. I hesitated uninstalling and reinstalling because it isn't always re - import settings, bookmarks, etc.. Love this browser and all software you provide.

    Hello Paul,

    You should look at this article on this specific issue and Preferences not savedarticle. It could be a problem of pref.js. It should give you all the information you need!

    If this does not work:

    1. Enter about: config in the address bar
    2. Click I'll be careful, I promise you if prompted
    3. In the filter field, type Startup
    4. Double click on startup.homepage_override_url
    5. Delete the text string, and then click OK
    6. Close Firefox and reopen the window to check that it worked.

    Hope this helps!

  • Windows mail on my computer - button Delete and delete elements stopped working suddenly 3 days ago

    Since the middle of the week, ive been unable to delete e-mails or empty the deleted items folder.  they will not erase regardless of the method that I try, IE the icon remove, right-click, empty folder deleted, etc.

    Delete the record shows 2 emails in there but when I open the file it shows nothing, its just empty, not not even the headers, if I try to empty deleted items, he says: "certain elements in the"deleted items"folder could not be deleted.  an error has occurred. "

    MI one way able to get rid of unwanted currently e-mail is to move them to the junk mail and delete from there.

    Please can anyone advise what I should do to get my delete option works again.

    I have mail-enabled windows on my computer and not online.  Thank you

    Try to compact and repair the database with this tool.
     
     
     
     
  • The difference between delete and insert transactions

    Hello

    How can I tell the difference between delete and insert in a process using Apex 5.0

    Best regards

    OraDev wrote:

    In a presentation table when you click the "Delete" button checked the database update triggers trigger I do not know why

    Do you really mean 'database trigger', or are you referring to a process of page APEX? Ensure that the tabular form MRU delete process conditional on the button DELETE and that the MRU update process is conditional on the "SAVE" button.

  • Clear cache page after deletion to avoid errors ora-1403 Apex 5.01

    Hi all

    Always 'new' at Apex!

    I'm getting ORA-01403: no data available error after deleting a line in a 5.01 Apex form created from the interactive report + model form.

    After searching the forum, I found a direct reference to this situation:

    ORA-01403: no data available on the deletion of a record

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

    After deleting a record, you must clear the page cache. If you do not have the primary key item session state can keep the old value of the deleted record. The page loading process will try to retrieve this value from the table and meet no data found.

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

    Unfortunately, I do not know where or how to " " " clear the cache of the page ' after deleting a record.

    I saw the reverence to APEX_UTIL. CLEAR_PAGE_CACHE but I don't know where to use

    Others say still set the value of the key null column.

    The documentation of the Apex is said to use the URL:

    2.9.3.2.2 example: clear cache on a Page and passing an element value

    This example shows how to implement a form of update. It erases the existing information and sets the value of the element (usually a primary key).

    f?p=6000:6003:&APP_SESSION.::NO:6003:MY_ITEM:1234 

    This example:

    • Runs the application 6003 6000 page and uses the ID of the current session

    • Specifies to not show debug information ( NO )

    • Clears all values maintained by the current session for the items on page 6003 cache

    • Sets the State of an element called session MY_ITEM value1234

    But I do not know where or how to do that in the context of the key Suppr.

    Can someone point me in the right direction? I'm learning the Apex using as many integrates native as possible features.

    If clearing the cache of the page, that's what needs to be done after the removal of a line, would not these features have been integrated to the Delete key?

    Thank you

    Mason

    OK, after wandering in the desert for a while, I tried this approach to clear the cache once you press the button Delete and it doesn't seem to work.

    I created a new process called "Clear the cache" after the process of "line process of...» »

    The process to clear the cache was of type PL/SQL Code with the section of Code PL/SQL, the value 'APEX_UTIL. CLEAR_PAGE_CACHE (2); »

    I don't know if it's a good way to do this, or if the accepted practices, or what side effects will rain down on me that they are, but at least I got a result that has solved my immediate problem.

    So nice to click on delete and not greeted with an ORA-01403 error!

    Thanks to everyone who helped me in on it!

    Mason

  • How can I add a message button Delete in Thunderbird?

    31.2.0 Thunderbird doesn't have an icon or a button Delete, and no display to customize the toolbar.

    It should be a delete button that you can add to the e-mail toolbar.
    When you click with the right button on the e-mail toolbar and select Customize you see not a delete button?

    There is a button to remove the header of the Message pane if you that lights up. It will switch on / off power with the F8 key.

    Press Delete on your keyboard works as does right click on the message and select Delete.

  • Button DELETE BACKUP on iPhone and iPad.  What it means?

    I've recently set up my iPhone and iPad to save on iCloud with the help of the iPad CSA.  After reviewing the two parameters of iCloud, I found some articles that I felt to be odd.  (1.) I started to save manually (using Save button) my iPad, but had to stop.  Now is no longer the backup button appears and is replaced by the BACKUP to DELETE.  The devices now show the same key.  I didn't click on button the fear I might screw something up that I will not be able to recover from.  I made a mistake by stopping the manual backup?  (2.) there is an entry of the LAST BACKUP on both my IOS devices.  Last entry from iPhone backup-> yesterday (what she said on the last day of little), the last backup of the iPad-> NEVER.  How will I know if a backup has been performed?  I read notifications that alert me Inorder for the backup device must be attached to a source of energy (I guess that the device load) and connected to WIFi, which have done.

    IAm sorry I'm asking these questions.  I'm new to the iCloud and because I just inherited my son's iPhone.  IPad recommended CSA I backup icloud because I asked if the devices can communicate with each other.

    Thank you in advance and if you know of any Apple document would still be to educate about iCloud, I would like to know those also

    I thank again,

    Darrell

    Deleting a backup should not affect your devices. Try storage of settings/iCloud/Storage/manage to see if the backup appear here.

  • HP Deskjet 1513: HP Deskjet 1513 - how to scan multiple Pages and save it as a pdf. File

    I am trying to scan several pages (3 pages) and save them all in a single pdf. file.  But, the scanner scans a page at a time and save each separate page as a pdf file. file. I don't see any options in the settings tab for that matter.  How can I scan multiple pages and save them as a pdf. file?  Thank you.

    Hello

    Please try:

    Double-click the icon of the printer on the desktop,
    Select scan a Document or Photo,
    The first page on the glass (face-down)
    Check the options (size, dpi...) and select document Scan to file, (note: not more than 300 dpi).
    Click on Scan - machine will scan the first page
    Delete the first page on the glass, put the second page,
    Click on + (plus sign) it is located on the left side of a red x
    Machine will sweep the second page, put 3rd page on the glass and click on + again... until the end and then click Save
    Click done after save

    Kind regards.

  • How can I delete large groups of photos and save the ones I want to keep?

    How can I delete large groups of photos and save the ones I want to keep?

    Rickw salvation,

    You must select all the images you want to remove in now CTRL + click in Windows and command-click on Mac.

    Once this is done, you can press the delete button to delete the catalog.

    It will also give you the option to delete the computer as well.

    Please click the link for information detailed below.

    Adobe Photoshop Lightroom Help | Manage photos in folders

    I hope this helps.

    ~ UL

  • need to put a download in report page button and clicking on it, only few columns will download (only specified)

    Hello

    I need as I put a download in report page button and clicking it will download only few columns (only specified). I use Apex 4.2.

    Please give an idea.

    Thank you

    Chebli

    Action-> download-> when you click the CSV, it will send a request like "CSV". Change the columns that you want to include in the output csv file. Go to the Condition section,

    Condition type: request is NOT contained in the Expression 1

    Expression1: CSV

    This column will not include in the csv file.

    Thank you

    Lacombe

  • trying to hide a button provided to save present... and should be

    trying to hide a button provided to save present... and it should be visible when recording is not present...

    So, I choose to condition condition... * return sql query is not no line... *.
    Select count (*) in master_magazine2


    I'm not able to find all the data in master_magazine 2. But the rest I'm not able to see the button... ?
    I put my state doesn't exist don't no sql query return no lines I thought it should work...
    The button, that I felt should be visible since there is no record in this table...

    Published by: pauljohny on August 8, 2012 05:16

    pauljohny wrote:
    trying to hide a button provided to save present... and it should be visible when recording is not present...

    So, I choose to condition condition... * return sql query is not no line... *.
    Select count (*) in master_magazine2

    I'm not able to find all the data in master_magazine 2. But the rest I'm not able to see the button... ?
    I put my state doesn't exist don't no sql query return no lines I thought it should work...
    The button, that I felt should be visible since there is no record in this table...

    Published by: pauljohny on August 8, 2012 05:16

    your sql will always return a row, count (*) always returns a number or, if there is no data then returns 0

    So the query should be present for your condition (does not exist the SQL return no rows)

    select 1 from master_magazine2
    

    See this http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions032.htm

  • Delete and stay on the same page!

    Hi guys,.


    As we detail in the following image:

    http://www.9M.com/upfiles/PlT97853.PNG

    I have a report and a form on the same page. When press on delete I want to remove the checked boxes and refresh 'DOWNLOAD' region, or stay on the same page.

    NOTE: 'Action' button Delete is - submit page.

    I hope my question is clear and look forward for assistance.

    Thanks in advance,
    Fateh

    Hello

    Can you please create a branch under after instruction processing, you can see the same page itself. So, after the removal of the process, it will come to the same page.

    Hope this could help you.

    Thank you & best regards
    Srikkanth.M

  • Button Delete does not seem to use branch to return to the page

    I've implemented a form of single update with several pages of report pointing to it. I did it using the base report / form option, the button create is therefore on the report link to the form with a button change to the form of update and delete. There is also a button cancel on the form.

    After having read the Forum, I put an article on the form to accept the page past the various pages of report number and redefine the unconditional branch on the value of button. This works well for create, update, and cancel. They all return to the original page beautifully.

    However, the button Delete a popup javascript standard asking for verification to delete. Appears, the record is deleted and I get treated action message, but I'm not at the original page - instead, I get an error "error ERR-1016 request '122' Page '0' not found (requested language =" en - us ")") which seems to say that it is not referencing the element of the back page. I know that the item has the correct value because it is currently not hidden to test.

    The branch point is on submit after treatment and pointing to a page of the application with the value of & P3_BRANCH_TO.

    If I replace the URL for the javascript popup in the button of deletion with the link to the article, I don't get the deletion at all. It just goes back to the original page. If the javascript code gives more than a popup.

    How can I work around this situation?

    TIA

    Gillian

    PS - this forum is great - it has been very useful for the beginner.

    Hi Gillian,

    The process of "reset page" is there to remove from the session, the values of all elements on the page. In most cases, it's ok because that's what you want to do. In some cases, however, this can cause problems. In your case, since your article P3_BRANCH_TO is on the same page, then it was also being allowed to go out with the rest of the data, so when management tried to read, the value was in fact null instead of a real page number.

    There are two things you could try, to make sure that you clear the values in session that you don't need, but keep those you do.

    1 - Place the items you wish to keep on another page, if possible or to create elements of the Application (via the shared components) and set these values instead. I'm doing this for my G_RETURN_PAGE point (which I think is similar to what you do with your P3_BRANCH_TO article) - I put this value on my basic pages (the pages that the user must come back after you perform an action) and then use & G_RETURN_PAGE. in the branch. As "reset page" don't erase data pages, any part of the application is not affected, will always be available.

    2. in your branch, you can set the value to itself. Thus, the parameter "Defining these elements" would be P3_BRANCH_TO and the 'with these values"would be & P3_BRANCH_TO.

    Andy

  • Can you is more middle - click on the buttons back and forward to open the most recent last/next page as a new tab?

    I use Firefox 26, and I remember at some point in the past you could middle - click on the buttons back and forward to open the most recent last/next page as a new tab. Now, it does not work. I have not changed anything else on Firefox I know works, so was it gradually as keyword.url or is this something else?

    ... OK, this is weird. I restarted Firefox in safe mode and the reworked for/back Middle-click, so I thought it was one of my modules. Yet once, I opened Firefox in normal mode... and Middle-click works.

    I have no idea.

Maybe you are looking for