Clear the Cache from the point of validation

Hello
I'm working on the report form. I want to clear the cache of the element in the validation code.
I send you my code: -.
DECLARE
CNT NUMBER;
BEGIN
SELECT 1 INTO CNT FROM CURRENCY_MAS WHERE CODE =:P111_CODE;
APEX_UTIL.CLEAR_ITEM_CACHE('P111_CODE');    // This Statement is not working
RETURN FALSE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN TRUE;
END;

Hello

Where you download info there APEX_UTIL procedure. CLEAR_ITEM_CACHE?
I can't find that in the document
http://download.Oracle.com/docs/CD/E17556_01/doc/apirefs.40/e15519/apex_util.htm#CHDBEEHG

Try

DECLARE
  CNT NUMBER;
BEGIN
  SELECT 1 INTO CNT
  FROM CURRENCY_MAS
  WHERE CODE = :P111_CODE
  ;
  :P111_CODE := NULL;

  RETURN FALSE;

EXCEPTION
WHEN NO_DATA_FOUND THEN
  RETURN TRUE;
END;

Kind regards
Jari

Tags: Database

Similar Questions

  • Clear the Cache of the element after the failure of the validation

    Hi guys,.

    I have a validation of the page that is triggered when two elements (P6_LOCATOR_ID & P6_NEW_LOCATION) is equal that works OK.

    Validation in the field is the field of P6_NEW_LOCATION.

    During this validation is true, I want the validation message is displayed as it is now, but I want the P6_NEW_LOCATION be given to null or cleared the cache for this element.

    I can't run it as a page after calculations and validations process because he never gets past the validations to open. I also tried to create a process of point clear cache after you press the button that triggers the validation, but still, it does not.

    Can anyone think otherwise it's possible?

    Thank you
    Chris

    Hi Chris,

    You pass the question as bind variable rather than spend his name in your validation page.

    your code

        APEX_UTIL.SET_SESSION_STATE(:P6_NEW_LOCATION,NULL);
    

    correct code

        APEX_UTIL.SET_SESSION_STATE('P6_NEW_LOCATION',NULL);
    

    Thank you

  • How can I clear the cache from time to time, it improves anything

    How do I clear the cache from time to time, or that I should, and improve anything

    Which cache?

  • I've set up a website in Muse. Any excerpt from fine to preview in a browser. When I download the file to make it live I am getting this error some files on the server may be missing or incorrect. Clear the cache of the browser, and then try again. If the

    I've set up a website in Muse. Any excerpt from fine to preview in a browser. When I download the file to make it live I am getting this error some files on the server may be missing or incorrect. Clear the cache of the browser, and then try again. If the problem persists, please contact Web site author. Art seems to be fine and the host site says it's probably coding error. What should I do?

    Hello

    Have you tried a few steps in the following article

    "Some files on the server may be missing or incorrect" Warning Message

    See if that helps. Let me know if you have any question.

  • Word document and clearing the Blackberry browser cache automatically

    I hope that is clear enough, let me give you general information.

    I developed an application of launchpad for launching the BB browser and it points to a Web site on the intranet that allows end-users to access a word document.

    The end users have access to this document periodically throughout the day to see it has updated content.

    The content of this document is updated regularly throughout the day, a problem arises, however, as the browser cache a copy of this document once it is loaded at the start and can be only manually clear the cache of the browser via the OPTIONS > DELETE the BROWSING DATA > now CLEAR will allow the end user see the updated document to update. This aspect should be done whenever the user wants to see the document, which is unacceptable.

    I realize account by using a word document is not an optimal solution, but under certain constraints, it was the only option available at the moment, which brings me to my question.

    Y at - it no practical way, whether programmatically, through BES settings or programmatically so that the browser delete it has cached content automatically?

    All of these options are excluded, are there no known method to simulate clicks, or control on a BB, be internally via the BB API or even 3 options part where this might be film script in the app to ban? (think windows GUI automation similar to AutoIt or something in that sense).

    Basically, I need a solution where the end user will not need to go into the options and delete the data itself, I realize this is the simple answer to this problem, but there are reasons why this isn't an option.

    I searched the forums here, but also google extensively and found previously that similar surveys were not happy with the results, I hope the further development or even 3rd party solutions may have been raised for this problem.

    Any input would be much appreciated.

    Hi @GSPSDev,

    On the first issue, caching is done based on the URL instead of emptying the cache, all you have to do is add a timestamp to the URL query string and the browser does not load the document from the cache. For example: If your original URL is: http://foo.bar/a.doc, then each time your shipment a request, send it to: http://foo.bar/a.doc?t=%timestamp% (timestamp is simply the value of System.currentTimeInMillis ()).

    On the second issue, the BB API allows you to simulate clicks of the user using the EventInjector:

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/system/EventInjector.html

    Hope that helps,

    E.

  • I have to empty my legacy disk cache and cache before made a big media? Or my computer will be made faster if I do not clear the cache?

    Currently I went quite a few large compositions, and I wondered just from a perspective of rendering speed, is it better to flush caches? Or my comps will be rendered more quickly if I didn't clear the caches?

    Logic suggests it will, my comp info in the cache and so it can be more quick to leave them, but everything also I understand a rendering that passes more quickly if she was a pleasure to work with own cache?

    I'm also ready for someone to say that it makes absolutely no difference at all!

    Very much appreciated.

    Chris

    The whole point of caches is to make the treatment more quickly so that the items do not need to be rerendered.

    The only reason to clear the cache, it's a bad result was mistakenly cached.

  • Taskflow Rollback is the origin of the display objects clear their cache

    We use JDeveloper 11.1.2.4 and JHS 11.1.2.4.  Application modules are derived from JhsApplicationModuleImpl.  It seems that the session of preparation is getDBTransaction () .setClearCacheOnRollback (false);

    We have a taskflow for pop up containing a backup and Cancel button more dynamic content region.  The idea is that the backup will call back activity that performs validation.  This will also close the pop-up window.  The Cancel button is similar to the record button, but the return of the activity will end the transaction with a rollback.  This seems to notify all objects in consultation: to deliver a restoration.  This causes each view object clear their cache, and then rerun the query. However, when the cancellation occurs, it causes all active views to be erased and updated.  There is a performance problem because all user data, module, menu and permission of JHS are updated.

    I also tried to use savepoints taskflow and observed the same behavior.

    It seems that the setClearCacheOnRollback may not be glued to or support has changed.

    I can also look at doing something different, but this seems to be a little problem with the extensions of JHS and / or ADF.  My other thing involves a managed bean that can invoke the effective cancellation of the view in question object.


    Thank you

    BradW

    Brad,

    The best way to solve this is to change the scope of control of data isolated for popup workflow group.

    In this way the workflow gets its own am instance and will only restore their own data.

    Steven Davelaar,

    JHeadstart team

  • Clearing the cache of reports

    Hello

    A lack of reports 11g under WLS.
    If our data are changed only a few times a year, we have set high enough in our cgicmd.dat of TOLERANCE.
    This means that, after the delivery of the new data in the cache should be eliminated.

    So the simple question is just how clear the cache?

    I found evidence of a tool called Manager to queue reports. An impressive name which, under Linux, is proving to be a script that can display the queue.
    As we already queue tables in the database that has been of little value.
    I have also found the real cache directory, were that the generated html/pdf is saved. Delete the pdf file by hand gives the user an error when updating of reports (instead of rerunning the it from the beginning).
    Clear the RW_JOBS and RW_SERVER_JOB_QUEUE tables by hand or by RW_SERVER. CLEAN_UP_QUEUE; yet will deliver the document cached when updating.
    In enterprise manager, I saw only a few cache settings, nothing to delete.


    Kind regards

    Tomas

    Hi Tomas... I see.

    Then you can try this approach.

    How can I clear the repserv.dat of all these reports of expiry that are no longer valid?
    Only method currently is to reduce maxQueueSize 1 or 0, then restart
    Report server, and then reset to restart, the desired figure maxQueueSize
    Once again.

    Reference
    What should the file repserv.dat do and what maxQueueSize and CacheSize effect on the file dat and Rw_server_queue Table (Doc ID 260810.1)

    Hope this can help, regards RZ

  • Clear the Cache of some items when clicking on tab

    I found this in the forms:

    If you want to clear the cache of the page when the user clicks on the tab, this should be the work of this page. You can create an after - submit processes (before the calculations and validations) with:

    apex_application.clear_page_cache(:APP_PAGE_ID);

    However, I need to clear some items not everything on the page. I tried replacing it with apex_application.clear_item_cache(:APP_ITEM); but it does not work. What is the process that clears the cache of apex_application point?

    Is the page you click away a shipment execution when you click away? If so, I'd like to try one of these in a branch of the page.

    Suppose you are on page 1 and clicking on page 2. To Page 2, let's say you want to keep the cache on the components P2_A, P2_B, but clears the cache for P2_C.

    In your page (defined on page 1) branch that is triggered to take you to page 2, try one of these:

    Clear the cache on the page: 2
    Place these items: P2_A, P2_B
    With these values: & P2_A, & P2_B.

    That should clear all of 2 but A reset and B back to their current values to the cache before it is cleared.

    If not, try this:
    Clear the cache on the page: (do not put anything here)
    Place these items: P2_C
    With these values: (do not put anything here)

    Who should (I think) only to erase P2_C

  • Automation to clear the Cache.

    Hi all

    Every day, after the completion of the activity of data load (using DAC - database Administration Console)... Clear cache everyday!

    If my client asked me to automate the purging of the cache (instead of clear the cache manually)... So their whole script which should be used to automate the Cache is the compensation process.

    If he is kindly help me...


    Thanks in advance...

    Hello

    You can clear the cache in SOLARIS, from your local windows system using nQCMD.exe

    http://obiee101.blogspot.com/2008/03/OBIEE-manage-cache-part-1.html

    nqcmd is also available in the Unix OBIEE facilities under ./OracleBI/server/Bin.

    Award points and close the debate if your question is answered.

    Thank you
    -Laurence.

  • Clear the cache of 2nd level tabs

    Hello
    I have a question related to the clearing the cache in an application level tab structure two. If you look at the examples of Denes Kubicek, you'll see that it uses a structure of tab level two. The horizontal bar under the header is level 1 and the left 'bar menu' is level 2.
    I also tried to implement, because I think it's a real nice way to offer a good navigation structure. But I've not found a good way to clear the cache of a page that opens when someone clicks on a tab-level 2. Someone at - it an idea? Perhaps Dene itself can help out me?
    Thank you!
    Jacob

    I think you speak standard tabs as a parent as the first level and second level. I think always of them the other way around. Well, what you need to do is create a process that is triggered (by default, for each page view) depends on demand, which is the name of the tab (T_ORDERS, for example). The point process of shooting must be on submit - before the calculations and Validations. In this process, you can determine the page being presented with the help of the standard tab: APP_PAGE_ID and the name of the page layout tab, again, in using: ASK. Then, the process can call apex_util.clear_page_cache to do the cache clearing you need.

    Scott

  • When I tried to connect to gmail, I was told that I had a problem with cookies. I cleared the cache, etc. and still can not log on.

    We have detected a problem with your cookies settings.
    When I try to connect to gmail, I get the following message is displayed.

    Enable cookies

    Make sure that your cookies are enabled. To enable cookies, follow these browser-specific instructions.
    Cookies and empty the cache

    If you have cookies enabled but are still having problems, clear the cache and cookies of your browser.
    Adjust your privacy settings

    If your cache and clearing cookies doesn't resolve the issue, try adjusting the privacy settings of your browser. If your settings are up, manually add www.google.com to your list of allowed sites. To learn more

    I checked and cookies are enabled. I cleared the cache. How can I add www.google.com to my allowed sites list? This will solve the problem?

    Thank you.

    What are your cookies settings? For example:

    Conservation rules: use the custom settings for history

    {X} accept cookies from sites
    Accept third-party cookies: always
    Keep until: I close Firefox

    Some sites may not work well if you have disabled the 'third party' cookies (I don't remember if Gmail is one of those).

    Have you deleted all existing Google cookies? You can do it from any page search on google.com. Here's how:

    While displaying a page on the site, try either:

    • Right click and select View Page Info > Security > "View Cookies".
    • (menu bar) Tools > Page Info > Security > 'view the Cookies '.
    • Click on the globe or padlock icon in the address bar > additional information > "View Cookies".

    In the dialog box that opens, google.com should be filled up automatically and you can delete cookies from the site individually.

    Then try logging into Gmail. Who help me?

  • 24 Firefox need to clear the cache on the exit option

    I was going to enable the option to clear the cache at the exit and found this answer:

    https://support.Mozilla.org/en-us/KB/how-clear-Firefox-cache

    However, in firefox, 24, the Privacy tab is totally different from this page. My option has 'tracking', 'history' and 'Bar', instead of just history and location of the bar. Under "History" there is that the drop-down menu has no the "clear history when Firefox is ' and the 'Configuration' button

    Why this feature is removed from v24?

    To view the history settings and cookies, choose:

    • Tools > Options > privacy > Firefox will be: "use the custom settings for history".

    Note Firefox will disable the disk cache if you use 'clear history of Firefox closing. "

    You can see that by the section of cache disk missing on the subject: cache and and in ' Firefox/tools > Options > advanced > network.

  • Firefox is not always compatible with the connection to my comcast email account. I need to clear the cache, and then I can back into my email account. Is there a way to permanently solve this problem? Thank you.

    Firefox is not always compatible with the connection to my comcast email account. I need to clear the cache, and then I am able to get back into my email account. Is there a way to permanently solve this problem? Thank you.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • I've recently updated Firefox. Now, I can't clear the cache. It is grayed under Tools. Is there another way to do this?

    I can't clear the cache from the Firefox ' tools' drop.

    Same keyboard shortcut ("Ctrl + Shift + P") to enter, or tools > Options > "Start private browsing:" similar (stop or end) to stop him.

    See

Maybe you are looking for

  • Satellite Pro A100 will not start!

    Hello I am having trouble with a Tosh. Satellite Pro A100 (model: PSAACE). The laptop was acting kinda funny for the last week (turned off on its own, saying that it is running on battery when pluged) then today he has decided to power off on it's ow

  • Who can I write to in order to signal a denial of service attack that is launched from the Microsoft servers?

    A letter with the following... We understand that you are hosting the following IP addresses: 157.55.17.145 207.46.204.242 65.52.108.66 65.52.109.153 65.52.110.199 65.52.111.7 157.55.16.229 157.55.17.146 Today (13 April 2012) our retail online busine

  • Error message when the printer - new message, old printer connection

    Hey, Dell forums. Me am a little a problem and, well, I have no idea how to solve this problem. I hope someone can help me. Technical care first of all: the computer in question is an IBM Thinkpad R51 laptop running Windows XP Professional SP 3. The

  • Windows 7 cursor problem.

    At the start, my cursor looks like and acts normally. But after some use, IE. display Web pages, folders, opening, the size of the cursor is growing! Although in the properties of the mouse - pointer, he says that he is currently using the system win

  • PowerPoint to DVD slideshow

    I want to take a powerpoint slideshow and convert it into a DVD slideshow. I can do this and, if so, how?