How to clear cache after mime object is updated?

Hi Expert,
    I create a mime object (such as "test1.jpg") in mime repository.
   In web dynpro, I add two UI elements: a formatted text edit and a File-Upload "Insert Image",
   after I click the File-Upload "Insert Image",
   I select an image file (such as test2.jpg) from local directory, and upload the content of the image file to mime object(test1.jpg) in mime repository.
   at the same time, I insert a line into formatted-text-edit as "<img src="/SAP/Public/.../test1.jpg" />".
   I double click the mime object (test1.jpg), its content has changed as test2.jpg,
   however, formatted-text-edit still displays the content of test1.jpg.
   When I mannually clear the cache of IE, and refresh the web, Formatted-text-edit display the content of test2.jpg.
  It's obvious that the cache of http server isn't cleared.
  How to clear cache after mime object is updated?
  Any suggestions are welcomed.
  Thank you.
Best Regards,
Derek
P.S. the source code:
lv_url = '/SAP/BC/WebDynpro/SAP/ZENHANCE_IA/test1.jpg'.
  lo_mine_rep = cl_mime_repository_api=>get_api( ).
  lo_mine_rep->put(
    EXPORTING
      i_url     = lv_url
      i_content = lv_file_string ).
Edited by: Derek Zhao on Sep 20, 2010 6:21 AM

Hi Derek,
Have you tried the method INVALIDATE_ICM_CACHE of class CL_MIME_REPOSITORY_API ?
Regards,
Anand

Similar Messages

  • How to Clear Cache after Install / Uninstall ?

    I love Installing / Uninstalling in Windows Phone ( Lumia 800 - WP7.8)..
    its so easy... any other OS cant beat it.. But i want to know how to clear the Cache (if at all exists)?
    i think there should be some way to clear it??
    and what's the best antivirus or malware or spyware for WP7.8?
    Solved!
    Go to Solution.

    You dont need spyware or antivirus.
    TO CLEAR CACHE ON BROWSER?
    From the Home screen, tap Internet Explorer.
    From the lower right corner of your screen, locate and tap the icon consisting of three dots.
    Select settings.
    Tap delete history.
    Tap delete to confirm.
    Close and relaunch your browser.
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to clear cache in entity object

    Hi All
    I am new to ADF .we r using JDEV 11g. I have a requirement where i am entering values for one id column.
    After entering values to ID column and clicked on save it checks with the data base whether that id exists or not. if exist it throws error saying id is existing.
    if i modify and enter new id which is not existing and click on save it is still showing the same error.
    I am pasting the code plz let me know where i exactly need to modify
    public void checkForPreviousPrimaryIdRecords(String Label,
    String LabelType)
    if (this.getSerialId() == null)
    SearchExistingPrimaryIdsVOImpl previousPrimaryRecords =
    (SearchExistingPrimaryIdsVOImpl) getSearchExistingPrimaryIdsVA().getViewObject();
    String[] vcNames =
    { "ByLabelAndLabelType" };
    ((ViewCriteriaManager) previousPrimaryRecords.getViewObject()).setApplyViewCriteriaNames(vcNames);
    ((SearchExistingPrimaryIdsVOImpl) previousPrimaryRecords.getViewObject()).setbindLabel(Label);
    ((SearchExistingPrimaryIdsVOImpl) previousPrimaryRecords.getViewObject()).setbindLabelType(LabelType);
    previousPrimaryRecords.executeQuery();
    while (previousPrimaryRecords.hasNext())
    Row altIdRow = previousPrimaryRecords.next();
    String reusableFlag =
    (String) altIdRow.getAttribute("ReusableFlag");
    * This is place where the error is coming i need to modify the cache values please suggest me */
    if (!ONE.equals(reusableFlag))
    ResourceBundle bundle =
    BundleFactory.getBundle("oracle.apps.pas.common.model.ErrorWarningMsgBundle");
    throw new JboException(bundle.getString("PREVIOUS_PRIMARY_ID_NOT_REUSABLE"),"PREVIOUS_PRIMARY_ID_NOT_REUSABLE",null);
    else
    String processedFlag =
    (String) altIdRow.getAttribute("ProcessedFlag");
    if (!ONE.equals(processedFlag))
    ResourceBundle bundle =
    BundleFactory.getBundle("oracle.apps.pas.common.model.ErrorWarningMsgBundle");
    throw new JboException(bundle.getString("PREVIOUS_PRIMARY_ID_NOT_SHIPPED"),"PREVIOUS_PRIMARY_ID_NOT_SHIPPED",null);
    }

    Hi,
    Code to be written in EntityImpl class:
                     DBTransactionImpl2 dbTransaction = (DBTransactionImpl2) this.getDBTransaction();
                if (dbTransaction.isDirty())
                    Iterator dirtyItr = this.getEntityDefinition().getAllEntityInstancesIterator(dbTransaction);
                    while (dirtyItr.hasNext())
                        Object obj = dirtyItr.next();
                        if (obj instanceof EntityImpl)
                            EntityImpl entity = (EntityImpl) obj;
                            byte entityState = entity.getEntityState();
                            switch (entityState)
                                case Entity.STATUS_DELETED:
                                    entity.refresh(Entity.REFRESH_WITH_DB_FORGET_CHANGES);
                                    break;
                                case Entity.STATUS_MODIFIED:
                                    entity.refresh(Entity.REFRESH_UNDO_CHANGES);
                                    break;
                                case Entity.STATUS_NEW:
                                    entity.refresh(Entity.REFRESH_FORGET_NEW_ROWS);
                                    entity.refresh(Entity.REFRESH_REMOVE_NEW_ROWS);
                                    break;
                    ((DBTransactionImpl2) this.getDBTransaction()).clearEntityCache(this.getEntityDefinition().getFullName());
                }Edited by: Raguraman on Dec 1, 2011 12:49 PM

  • How to clear Cache in SAP BW

    Hi All,
    i changed 1 .js file in mime repository, but the changes are not getting reflected when i run 1 of the WAD templates. it still picks the old .js file. i guess there is some problem related to clearing of cache memory.
    Any ideas about how to clear cache in BW?
    Thnx in advance
    Godhuli

    Hi Godhuli,
    You can call transaction <b>RSRCACHE</b> and you can delete all; In OSS Note 456068, you can find all the issues related to this kind of problem
    You can also refer oss notes 679609,779015 for OLAP cache invalidation.
    Awarding points is the way of saying thanks in SDN!!!
    Regards,
    Balaji

  • How to clear cache and cookies

    Hi guys,
    I am new to jsf. And I have one problem in jsf, How to clear cache and cookies.
    Please help me to solve this..

    clearing Java cache and cookies is different from clearing IE cache and cookies. Usually when you powercycle your computer it is automatically cleared. To clear manually:
    go to start--> settings--> control panel--> double click on Java icon. Click on "delete files" under temporary internet files or 'clear cache' in the 'cache' tab. It depends on which version of java and which OS you use on how these will show up.
    If you were having issues with java crashing or making your freezing up, this should resolve the issue. It is strongly suggested that you powercycle the computer as well after clearing the java cache.

  • How can i reference a MIME object within a correspondence format through...

    how can i reference a MIME object within a correspondence format through TX oofo or se71?
    Hi, I need to put a MIME object within a correspondence's format that i've already done through Tx oofo. My problem is, that i don't know exactly how can i make the reference of that MIME object in the format? and What structure type do i have to use in order to make appear the MIME object in my correspondence's format? Does anybody can help me with this?   
    Regards    Hector

    Frank,
    I tried to find some examples/samples on how to create CollectionModel for a table component but not successful.
    Can you clarify the following ?
    1. "CollectionModel" is referenced only by af:table attributes "value", "selectedRowKeys" and "selectionListener".
    The rest of af:table attributes such as "rows", "fetchSize" used to reference the iterator binding in the binding container via the EL expression "#{bindings.VOIteratorBinding.xxx} .
    What should I replace that EL expression with?
    2. I heck out the bean method to create the CollectionModel as following, is it close to what you mean?
    public void initBusinessDataDashboardView() {
    OperationBinding operation = BeanUtils.getOperationBinding("getPanelBusinessData");
    Map params = operation.getParamsMap();
    Key panelKey = getPanelInfoView().getKey();
    params.put("panelKey", panelKey);
    params.put("maximizedView", false);
    panelView = (ViewObject)operation.execute();
    // Heck code to create CollectionModel
    RowSet rowSet = panelView.getRowSet();
    ArrayList rowList = new ArrayList();
    while (rowSet.hasNext()) {
    rowList.add(rowSet.next());
    model = new ChildPropertyTreeModel(rowList, null);
    // To be used to set up af:table value, selectRowKeys, selectionListener via EL expr #{backingBeanScope.MyBean.model.xxx}
    public CollectionModel getModel() {
    return model;
    Am I on the right track?
    Edited by: Pricilla on May 4, 2010 2:20 PM

  • How to clear Cache in Safari?

    I found this solution to clear Cache in Safari on the community pages.
    Does it work? I hope the Safari developers with confirm.
    How to clear Cache in Safari
    ~Bee Delaware
    Jan 3, 2013 7:34 PM
    Quit Safari.
    Click out on your desktop somewhere to get Finder menu on the top menu bar.  Then look over to the right, and select the "Go" menu while holding down the "Option"button.  You will then see an option for "Library" right under your home folder on that list.
    That is your hidden Users Library.  Open that Library, go down to Caches.  Open that, and then look for apple.com.Safari.  Take that file to the trash.
    Restart Safari.
    I tried it, I do not know what the consequences are yet

    It''s a bit drastic, but that clears Safari cache. There's another way of clearing the cache:
    1. Open Safari, go to Safari menu (on the menu bar) > Preferences > Advanced, and tick "Show Develop menu in menu bar".
    2. Close Preferences, and go to Develop menu > Delete cache

  • How to clear caches using lion

    how to clear caches using lion

    There are a number of 3rd-party apps that will delete caches, among other things.  The free OnyX is a good one.
    But, as a brody says, it's usually not a good idea to do that unless you're sure it's needed. 

  • How to clear cache in oracle without bouncing apache,

    Hi guys,
    Can any one please suggest how to clear cache without apache bounce....
    Thanks in advance

    Thanks for your reply....
    I have done controller extension ,through personalization i have added the new controller path to the seeded page............
    But now i need the actual controller instead of my new custom controller for this i have firstly disabled Personlization for my user then i went to that page i have clicked on 'Inherit'() option ,then again i have enabled personalization ...now when i open that page itz still pointing to the custom controller path instead of the original controller......
    Help me to solve this issue without Apache bounce....
    Edited by: 912808 on Mar 21, 2012 6:19 AM

  • How to clear cache POP-UP LOV

    Hi All,
    How to clear cache POP-UP LOV .
    For example :
    I had created one pop-up lov "Marketing client", when I select any value from pop-up lov . If the Marketing Client already has 'AIM Investments' but someone clicks the item to get to search for a different one it currently only shows 'AIM Investments' unless someone blanks out the search box.
    What I want is every time I click on LOV it will show all the values. User need not to clear the search box to get all the values.
    Any pointer.
    Regards
    Dikshit

    Hi All,
    How to clear cache POP-UP LOV .
    For example :
    I had created one pop-up lov "Marketing client", when I select any value from pop-up lov . If the Marketing Client already has 'AIM Investments' but someone clicks the item to get to search for a different one it currently only shows 'AIM Investments' unless someone blanks out the search box.
    What I want is every time I click on LOV it will show all the values. User need not to clear the search box to get all the values.
    Any pointer.
    Regards
    Dikshit

  • How to clear cache in firefox

    how to clear cache in firefox

    Settings-Advanced-below"Network" and here clear
    https://support.mozilla.org/ru/kb/kak-ochistit-kesh-firefox?redirectlocale=ru&redirectslug=kak-ochistit-kesh

  • How to clear cache in mavericks

    how to clear cache in mavericks ?

    You can use one of several good utilities:
    Mavericks Cache Cleaner
    Onyx
    Cocktail
    You will find them at www.macupdate.com.
    Also, you should startup in Safe Mode, then restart normally. This is a slow startup, but part of the process cleans out some system caches.
    I don't know what browser you use, but there should be some cache clearing options available.

  • How to clear cache and cookies on an iphone

    Hi, can you please tell how to clear cache and cookies on an iPhone, thanks

    Settings > Safari > Clear Cache/Cookies

  • Download in CSV format with Clear Cache After Regions

    Hi,
    I am trying to download Apex report in CSV format, but, as I have Clear cache After Region data gets cleared and nothing the saved in CSV file. If I remove Clear Cache option I am able to download report in CSV format, but, as cache entries are not cleard it is fetching all records related to previous entry which is not intended. This is all happening in single session. If I logout and login again, then cache is cleard. But in single session when I move from one report to another cache entries are not cleared.
    Appreciate your help.

    Hi,
    I am trying to download Apex report in CSV format, but, as I have Clear cache After Region data gets cleared and nothing the saved in CSV file. If I remove Clear Cache option I am able to download report in CSV format, but, as cache entries are not cleard it is fetching all records related to previous entry which is not intended. This is all happening in single session. If I logout and login again, then cache is cleard. But in single session when I move from one report to another cache entries are not cleared.
    Appreciate your help.

  • How do I disable linked smart-object auto-update/refresh?

    Working in the CC3D features, I am constantly making changes to my bump map. Every time I step-backwards, or make a significant change to the bump texture (smart object?), CC auto-saves the layer. This specific file is a very very large document (3 gigs in the bump texture layer alone), and the 3D layer has lots of lights and is very complex. This auto-refresh/update really bogs down the time that it would take me to make my changes. I have a very fast machine (I know it's fast, I dont need to list my specs), and I have all shadows disabled.
    How do I disable linked smart-object auto-update/refresh?

    If you do not like a feature like smart objects there is nothing forcing you to use it. Use some other features to do what you want. Please don't ask Adobe to introduce bug into smart object support.
    You could work on your bump maps textures in external files. When your done some time in the future you could edit your project with the smart object layer and use replace smart object. Only then will all smart filters be applied to the smart layer with the replaced smart object.
    Or if by CC Auto save Layer you referring to CC Generate feature you can disable that feature.
    I have no idea what your referring to when you write "CC auto-saves the layer" being a feature. I know CC Generate will write layers out as web files but that more a Web feature then a 3d feature.  Where do you see your layer being saved?

Maybe you are looking for

  • Single Sign On (SSO) Issue

    We are running Business Objects Enterprise XI 3.1, SP2 (BOBJ) in a Windows environment and have implemented single sign on for Windows AD.  Randomly single sign on does not work for some of our users when either accessing InfoView or when executing a

  • Tolerance for AP Checks

    Hi All, Where can I go to set tolerance for vendor check payments? Eg: If I am paying a vendor a check for $1, I want the system to put a tolerance around that and prevent me from paying a check worth that small an amount. Thanks, Deki

  • Dynamic cache instantiation parameters

    I need to offer "customers" of my cloud/cache services the ability to specify some of the properties they want in caches they create. I am operating with the restriction that we cannot restart cluster members just for the purpose of rereading the cac

  • Icloud drive on an external drive ?

    I would like to have my iCloud drive folder live on an external drive , is this possible ? Many thanks

  • HT4528 It takes hours for my phone to charge, however, when i charge it, it dies out immediately. Should I bring it in for service?

    My phone takes hours to charge and when it does charge as soon as I take it out of the charger the phone dies out? What does that mean? Should I bring it in for a service?