RE: Clear cache values

Hi all,
I am using Jdeveloper 11.1.2.3.0
I one page with two tabs named List and New
In list tab i have adf table and in new tab i have form.
In the form i have one unique constraint field, so whenever i am trying to enter already existed data it is giving an error message and however it is fine.
But the problem is even though it is not committing the data it is showing in the table in the list tab and moreover the data is not saved in db.
If i refresh the page then the values are not there in table.
So how can i clear those values in the table without refreshing the page.
Thanks,
Syam

Hi,
you should clear the data in the form when you press e.g. cancel. For this have the cancel button doing as follows
1. access the binding layer BindingContext.getCurrent().getCurrentBindingsEntry()
2. access the iterator (DCIteratorBinding) bindings.get("Name of iterator")
3. get current row iterator.getCurrentRow()
4. remove row  row.remove();
This then will also remove the row from the table. Still you may have to refresh the table to make the change visible. Here you can use the table's PartialTrigger property and point it to the tab ID of tha tab that switches back to the table
Frank

Similar Messages

  • Reset af:inputText values and clear cache

    Greeting everyone!
    I use JDev Version 11.1.2.3.0
    I have three af:inputText components, all pointin to persistent attributes from one VO. One of these fields gets it's value calculated (in a managed bean) from the others two values. This is done on value change of these two fields. The problem is when i reset these other two fields (meaning, when i delete the content inside of them). The value on the third field does not to change at first. From the controls i've done, it seems that it keeps a value in a cache. So when i clear the first field, the value of the third field remains the same, and when i clear the value from the second field too, then the third field gets the value cleared from the second field.
    I know this might be a bit confusing so here is the basic code snippet i've tried:
        public void getTotalContractInfo(ValueChangeEvent valueChangeEvent) {
            System.out.println("A value is changing!");
            if (tvshContractInfo.getValue()!= null && it14.getValue()!= null) {
               BigDecimal x = new BigDecimal(tvshContractInfo.getValue().toString());
                BigDecimal y= new BigDecimal(it14.getValue().toString());
                BigDecimal i = new BigDecimal(100);
                BigDecimal m = (y.multiply(x)).divide(i);
                totalContractInfo.setValue(y.add(m));
            else if (tvshContractInfo.getValue()== null && it14.getValue()!= null){
            totalContractInfo.setValue(Integer.parseInt(it14.getValue().toString()));
            else if (it14.getValue()== null ){
            it14.resetValue();
                totalContractInfo.resetValue();
    Any ideas what is happening? I've tried several techniques to refresh the components or clear the binding cache, but none of them seems to work.
    Thank you in advance!

    After resetting value, try doing valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    or
    ((UIXEditableValue)valueChangeEvent.getComponent()).resetValue();
    Thanks

  • How to clear cache for items after submitting the page ?

    db11gxe , apex 4.0 , firefox 24 ,
    hi all ,
    i have a non enterable pop-up lov and a report in the same page , and i search with the pop-up item , but the problem is when i click the search button ,
    the value in the pop-up is not deleted , and sure i want it cleared after i search ? how to do so ?
    thanks

    Surely, when you click the search button, the value in your item is required by the report (as a parameter).
    Create a button (RESET) with a branch back to the same page and use the clear cache in the branch
    Gus

  • Clear Cache of item in validation

    Hi,
    I am working on Form with Report. i want to clear cache of the item in validation code.
    i am sending 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;

    Hi Jari,
    Thanks to Reply me.
    I am getting problem. I am using form with report. I am doing this Because i want to keep
    the control to the "Create" New entry form until validation not satisfied.This problem has been resolved by the code.
    But as i do the any entry in ":p1_code" Primary Key item It giving the error Unique constraint voilated even if value not exist into the table.
    ORA-00001: unique constraint (TADEV.CURR_UK) violated
    Unable to process row of table CURRENCY_MAS.

  • Clear Cache-Single Page Item

    I need to clear the cache for a single page item. This is what I have done:
    - Created button call Reset Appt Time
    - Created Process - Clear Cache for items, Source has the page item I need to clear - P3_APPT_DT_TM
    - Created Branch - so that when Reset button is pressed it branches back to same page (3)
    Everything works, but the cache is cleared for all the items on the page not just the one page item I specified.
    Please advise.

    Hi,
    I am not sure if you could clear cache of a single item, but you can initialize any item to null or any values, look for the Action box of Page Branch, (set these items and set these values ).
    Regards,
    Manish

  • Item Clear Cache After Submit Press

    hi,
    i have 5 item on a page Like
    P1_A,
    P1_B,
    P1_C,
    P1_D,
    P1_E .
    I want here when i press submit button then value of P1_A, P1_B, P1_C, P1_D, P1_E should be in insert into table and clear Cache last item P1_C, P1_D, P1_E
    and value of item P1_A,P1_B should not be clear Cache.
    How can i Clear Cache the selected item .
    Thanks
    Manoj Kaushik
    Clear Cashe Selected Item On Press Submit Button

    hi ,
    I have one more proble,
    I have implement e-mail option in my application,i have two report first one contain List of all document and a Link In last Column in that report when i click at that link then respective Document are Add in Second Report .
    But problem is when i click Attach LinkThen page is Refresh and All Fill Value In ITEMS are clear which are on page 4.
    How can i stop to clear these item value if i attch document.
    Workspace: SKILLS IMPROVE
    User: [email protected]
    Password : desomu
    Application -42370
    Page No 4
    Thanks

  • Clear cache in the session

    In my application, there are multiple tabs created. Each tab has a different functiionality. When I enter some value in the first tab and after processing the page, if I navigate to another tab and again come back to the previous tab, the value entered in the text field is still displayed.
    My requirement is to make the contents of the text field null when ever I navigate to that page.
    In short within a session, the values entered in the text fields are not cleared when navigating between pages.
    Any ways to achieve this?
    Regards
    Amit.

    U have clear cache option in tab entries details.. set it to pages which U want f.e. 3,7 - will clear cache of page 3 and page 7.
    Other way is to change in item option "Source Used" to "always replacing...."
    is that what U are asking?
    Edited by: nirud on 2009-09-22 06:13

  • Clear Cache of a Page using Tabs

    Hello,
    my problem is, that i want to clear the cache of a page, when the user accesses this page by clicking a tab.
    So my Page has six items, which are used to search people in a db.
    Under the items is a submit button, which submits the values in the items and the same page is loaded with the search result.
    But when i go on another page and click on the tab of the "search-page" the result is still there.
    Because of the submit button i can not create a process which clears the cache when the page is loaded....
    I hope you understand my problem,
    Thank you,
    Tim

    This is not possible using the built in Apex tabs. Apex tabs are meant to quickly switch between pages with all your session state intact.
    You can do what you want if you use a List instead of tabs. You have full control over List entries and you can clear cache for the list target page, set other items as needed (you can control the full f?p= URL)
    Hope this helps.

  • Transient entity attributes and clearing cache

    I have an entity with both queriable and transient attributes. One of the transient attributes uses the persistent primary key of the entity object as well as an attributes retrieved from another entity via an association in order to execute a CallableStatement. This transient attribute uses the following code:
    public Number getReflectallow() {
    if ((Number)getAttributeInternal(REFLECTALLOW) == null) {
    return getReflectAllowFromDB();
    } else {
    return (Number)getAttributeInternal(REFLECTALLOW);
    The getReflectAllowFromDB also sets the value in entity cache using the populateAttribute method.
    My problem is that this database value can change and there are certain points in the application where I would like to clear the cache and rebuild all new values for this attribute. I have tried using both getTransaction.clearEntityCache() and the clearCache() on the view object but neither affects this field. I also cannot loop through the view and reset that attribute to null because it dirties the transaction. I'm assuming that clearing the cache does not work because the attribute is transient. How can I clear the values from cache?

    Any help with this Shay?

  • Run page with cleared cache after edit in application builder

    When I am building a form and run into an error while submitting the page I get the following situation. After making some changes to the page I try to run it again but the values from the previous try are still in the cache. So I immediately run into the same error I had earlier. The only way around this, that I currently know of, is to select another page in the application builder and start this. Then I can navigate to the page I'm working on using the menu. I usually start pages from the menu with a cleared cache.
    Is there an easier way to do this?
    There are currently two "run" buttons in the application builder. There is the button that says "run" and there is the "traffic light". Maybe one of those can be used the run the page with a cleared cahche and the other one with the cache still intact.
    Edited by: Rene W. on Dec 23, 2010 6:26 AM

    Hi,
    One of the parameters in the URL is for clearing cache:
    f?p=App:Page:Session:Request:Debug:ClearCache:itemNames:itemValues:PrinterFriendly
    so, you could just enter the page number into the 6th parameter to clear the cache for that page
    Andy

  • Don not excute valide query on MS explorer if i don't clear cache manualy

    I have a report taht execute a query on a table.
    I have notice that on some pc the query is not valid and the browser view old value.
    After a lot of test i have clear manualy the explorer'cache of Microsoft explorer. And then the query resul are valid.
    There i a solution ??
    Thank's

    See Re: ApEx Development Team: tab clear cache - new feature? .
    Scott

  • Clear Cache for Certain Items on Tab Click

    I found this in the forms:
    If you want to clear the cache of the page submitted when the tab is clicked, that should be the job of that page. You can create an after-submit process (before computations and validations) with:
    apex_application.clear_page_cache(:APP_PAGE_ID);
    However, I need to clear certain items not everything on the page. I tried substituting apex_application.clear_item_cache(:APP_ITEM); but that doesn't work. What is the process that clears the apex_application item cache?

    Is the page you're clicking away from executing a submit when you click away? If so, I would try either of these in a page branch.
    Assume you are on page 1 and clicking to page 2. On Page 2, let's say you want to keep the cache on items P2_A, P2_B but clear the cache for P2_C.
    In your page branch (defined on page 1) that fires to take you to page 2, try either of these:
    Clear cache on page: 2
    Set these items: P2_A, P2_B
    With these values: &P2_A., &P2_B.
    That should clear all of 2 but reset A and B back to their current values from the cache before it's cleared.
    Or, try this:
    Clear cache on page: (don't put anything here)
    Set these items: P2_C
    With these values: (don't put anything here)
    That should (I think) only clear P2_C

  • Apex not clearing cache

    Using Apex 4.1.1 on Oracle XE 11G (Linux)
    I have a form and a report in and when you click on create button it will clear the cache in page 6 so you can create a new entry.
    If click on the link on table which will set the value of P6_TID (type hidden) with a value, the typical Form & Report setup except I created it manually and was working fine for over a month since creation.
    Now when I click on the CREATE button its no longer clearing cache in page 6. Instead it retrieves the latest values I had earlier (P6_TID holding the latest value).
    However just earlier I was having another issue where I had to drop the parsing schema and got ORA-01940 - cannot drop a user that currently logged in, so I had to do a:
    SQL> shutdown immediate;and as soon as Oracle stopped I started it up and created my user, granted necessary permissions and imported the old DMP file.
    I've gone through this step many times but only now I am getting the ORA-01940 error. So have no idea if its anything to do with the issue of clearing cache I am having. Both issue coincided same time.
    Has anyone had any such problem where they are unable to clear cache for a page or session? I got absolutely know idea what I have to do get it back working.
    Cheers.

    Why would you shut down your database to kick a user. Just do
      select * from v$sessionYou can find your schema that you want to drop with a where clause on the user column.
    Now note the sid and the serial column and do
      alter system kill session '#SID#, #SERIAL#';Replace #SID# and #SERIAL# with the values of your session you want to kill.
    This will stop the ORA-01940 error.
    Now for the APEX matter. The APEX session is completely different from the Database session.
    If you submit values to the server then APEX keeps those values in session.
    If you clear the cache of a page it really means that you clear the values of that page in the session.
    Look in your session if those page items are cleared.
    If they are not cleared there then watch out for a unwanted rowfetch of page processes. If you clear the page cache on create you most not give away any variables to that page hee! (espacially not a primary key)
    Regards

  • Clear cache problem

    Hi,
    I'm using Apex 3.1 and I've created a branch on a page using the following url I found in the documentation:
    f?p=6000:6003:&APP_SESSION.::NO:6003:MY_ITEM:1234
    This should clear cache on page 6003 from app 6000, set MY_ITEM to 1234 and return to the same page.
    Apex interpreted the link and put page 6003 in the clear cache box of the branch's properties. For now all sounds great, the only problem is, that it doesn't actually clear the cache. The url appears in the browser except for the page before the item setting, so it doesn't clear any page caches.
    Is this a bug or is there an option I'm missing?
    Thank you,
    Marc

    Marc,
    Could you be a little more clear on what you are trying to do?
    if you use the following url for example:
    f?p=6000:6003:&APP_SESSION.::NO:6004,6014
    this will take you to page 6003 in application 6000 and clear the cache for pages 6004 and 6014. if you are finding items with values populated, most likely that they are being set by some process after the cache has been cleared.
    Also, how are you checking if the cache for the other pages have been cleared? Have you confirmed that you are not populating the items on these other pages as you are are navigating to that page?
    Use the session link on the developer toolbar immediately after you make you original navigation to clear the cache to check the relevant pages - you should expect to see that they have been cleared in most cases (unless there is a process that is resetting the values)
    Also, just to check/confirm - the syntax is page numbers as in 1,2,3 not P1,P2,P3
    Edited by: Alex_A_N on Sep 3, 2008 7:38 PM

  • How to clear Cache in application module

    Hi,
    i am using jDeveloper 10.1.3.4
    ADF BC
    after executing ADF search form, i want to clear Cache.
    how can i do it.
    Pl. help
    Thanks
    Ajit

    hi,
    I am having search form based on viewObject Asydet1(say Asydet1Iterator) in exp1.jsp page.
    I execute it.Then I navigate to drg_wise.jsp page that is another search form based on viewObject Asydet1(say Asydet1Iterator).
    Now on drg_wise.jp page result of exp1.jsp page is shown.
    On executing find on drg_wise.jsp rows returns if it fullfil search condition on result of first search.
    Asydet1 and Rtpr0drg are having master detailrelation.
    page def file for exp1.jsp is
    <executables>
    <invokeAction id="AlwaysFind" Binds="Find" Refresh="ifNeeded"
    RefreshCondition="${bindings.Asydet1Iterator.findMode == false}"/>
    <iterator id="Asydet1Iterator" RangeSize="10" Binds="Asydet1"
    DataControl="DocketAppModuleDataControl"/>
    <iterator id="Rtpr0drgIterator" RangeSize="10" Binds="Rtpr0drg"
    DataControl="DocketAppModuleDataControl"/>
    </executables>
    <bindings>
    <attributeValues id="Drgno" IterBinding="Asydet1Iterator">
    <AttrNames>
    <Item Value="Drgno"/>
    </AttrNames>
    </attributeValues>
    <attributeValues id="Var11" IterBinding="Asydet1Iterator">
    <AttrNames>
    <Item Value="Var11"/>
    </AttrNames>
    </attributeValues>
    <attributeValues id="Itemno" IterBinding="Asydet1Iterator">
    <AttrNames>
    <Item Value="Itemno"/>
    </AttrNames>
    </attributeValues>
    <action id="Find" RequiresUpdateModel="true" Action="3"
    IterBinding="Asydet1Iterator"/>
    <action id="Execute" RequiresUpdateModel="true" Action="2"
    IterBinding="Asydet1Iterator"/>
    <table id="Asydet1Rtpr0drg" IterBinding="Rtpr0drgIterator">
    <AttrNames>
    <Item Value="Blk"/>
    <Item Value="Drgno"/>
    <Item Value="Var1"/>
    <Item Value="Totopn"/>
    <Item Value="Revno"/>
    <Item Value="Revdate"/>
    <Item Value="Author"/>
    <Item Value="Approvby"/>
    <Item Value="Userid"/>
    <Item Value="Pdate"/>
    <Item Value="Stat"/>
    </AttrNames>
    </table>
    page def file for drg_wise.jsp is
    <executables>
    <invokeAction id="AlwaysFind" Binds="Find" Refresh="ifNeeded"
    RefreshCondition="${bindings.Asydet1Iterator1.findMode == false}"/>
    <iterator id="Asydet1Iterator1" RangeSize="10" Binds="Asydet1"
    DataControl="DocketAppModuleDataControl"/>
    <iterator id="Rtpr0drgIterator1" RangeSize="10" Binds="Rtpr0drg"
    DataControl="DocketAppModuleDataControl"/>
    </executables>
    <bindings>
    <attributeValues id="Itemdrgno" IterBinding="Asydet1Iterator1">
    <AttrNames>
    <Item Value="Itemdrgno"/>
    </AttrNames>
    </attributeValues>
    <attributeValues id="Itemdrgvar" IterBinding="Asydet1Iterator1">
    <AttrNames>
    <Item Value="Itemdrgvar"/>
    </AttrNames>
    </attributeValues>
    <action id="Find" RequiresUpdateModel="true" Action="3"
    IterBinding="Asydet1Iterator1"/>
    <action id="Execute" RequiresUpdateModel="true" Action="2"
    IterBinding="Asydet1Iterator1"/>
    <table id="Asydet1Rtpr0drg" IterBinding="Rtpr0drgIterator1">
    <AttrNames>
    <Item Value="Blk"/>
    <Item Value="Drgno"/>
    <Item Value="Var1"/>
    <Item Value="Totopn"/>
    <Item Value="Revno"/>
    <Item Value="Revdate"/>
    <Item Value="Author"/>
    <Item Value="Approvby"/>
    <Item Value="Userid"/>
    <Item Value="Pdate"/>
    <Item Value="Stat"/>
    </AttrNames>
    </table>
    I Believe it would help you undersatnd my problem. other wise let me know what else i can add to it.
    thanks for your effects.
    pl. help me solve it.
    Thanks
    Ajit

Maybe you are looking for

  • Macbook to TV

    i have a white macbook 2.4 GHz Intel Core 2 Duo (Macbook 4,1) i wanted to hook it up to my tv and i would like both video AND audio to work any one with a suggestion for the best way to do this?

  • Need third party software to move photos from iphone 3GS to my PC.

    Hi, I'm hoping someone can recommend me a good software package that allows me to use my iphone as an external memeory drive so that I can copy 4000(!) photos from my 'Photo Library' without loosing the quality??? (I'm running Windows 7)

  • How can I make my photos on my icloud stream on my pc show up in my iphone ?

    I´m trying to start take advantage of the Icloud syncing. I activated Icloud on my pc, I choosed a map where I wanted the files to be stored. 3 folders was made "my photostream","uploads" and "shared". When I click on my start menu and click on "phot

  • How can forbid changging data when using BAPI  'BAPI_MATERIAL_SAVEREPLICA'?

    I am using BAPI  'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch. But this BAPI also can be used for change mode. How to forbid the change of MAT data when use this BAPI? TKS a lot~~ I am looking foward to your response~~~ Edited b

  • UC560 - Nightly automated backup - Possible?

    Hi, I have an UC560 system. I would like to schedule a nightly backup job to backup all configuration and voice mails. Is it possible? Configuration doesn't change much on daily basis but the voicemails do and need a way to back them up unattended. P