How to delete the files from server through OAF page

Hi All,
I have a requirement in which i am creating files on server through my CO code.
Now once the page is rendered, i want to delete the files from the server.
Just wondering how can we achieve this.
Kindly advice!
Thanks,
Sachin

Hi Sachin
all the methods in the processRequest() are called during loading of the page.
all the methods in the processFormRequest() are called during any action events on the page.
So Use the method in processFormRequest() : write a method in
that on which action you want to delete the file.
regards
sridhar

Similar Messages

  • How to delete the files from iPhone before selling?

    How do I delete the files from my old iPhone4 before selling?

    Hey adhot,
    Before selling your iPhone, you'll want to follow these directions:
    Before you sell or give away your iOS device, make sure that you have removed all of your personal information. Follow these steps to protect your data and get your device to its factory default state for the new owner:
    Back up your device.
    Go to Settings > General > Reset, then tap Erase All Content and Settings.
    This will completely erase your device and turn off iCloud, iMessage, FaceTime, Game Center, and other services.
    If you are using iOS 7 and have Find My iPhone turned on, your Apple ID and password will be required. After you provide your password, the device will be erased and removed from your account so that the next owner can activate it.
    Contact your carrier for guidance on transferring service to the new owner.
    When the device is turned on for the first time by the new owner, Setup Assistant will guide them through the setup process.
    Important: Do not manually delete contacts, calendars, reminders, documents, photo streams, or any other iCloud data while signed in to your iCloud account, or the content will also be deleted from the iCloud servers and all of your iCloud devices.
    via: What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    Have a great day,
    Delgadoh

  • How to delete a file from my hard drive through iTunes?

    I want to delete a file through my iTunes. Whenever I do, it just gives me a dialog window telling me that it will delete the file from the library and my iPod. It does NOT delete it from my hard drive. I do NOT want to let iTunes manage my music.
    How can I delete files? It seems crazy that I wouldn't be able to.

    hmm. for some strange reason after doing that it just simply warns me that in deleting the song(s) it will ruin my playlists/mess up songs currently on my ipod.
    im just trying to delete all the songs that are under a minute from various albums because they take a lot of room, yet are pretty useless. but they are strung out over multiple files and i simply would love to be able to delete them all from the library where they are arranged. do you know of any other techniques to fix it?

  • System exception while deleting the file from app server in background job

    Hi All,
    I have a issue while the deleting the file from application server.
    I am using the statement DELETE DATASET in my program to delete the file from app server.
    I am able to delete the file from the app server when i run the program from app server.
    When i run the same report from background job i am getting the message called System exception.
    Is there any secuirity which i need to get the issue.
    Thank You,
    Taragini

    Hi All,
    I get all the authorization sto delete the file from application serever.
    Thing is i am able to run the program sucessfully in foreground but not in the background .
    It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
    Can anybody please give me suggestion
    Thanks,
    Taragini

  • I download confidential info & save to a secured flash drive; how can I delete the file from "downloads" after that?

    I am a mental health professional. My supervisor emails me confidential information as Word documents, which I download using Firefox. When the download is complete, I open the document and save it to my secured flash drive. I would like to then delete the file from my computer, so the flash drive has the only copy, to protect my clients' privacy. The only directions I can find are for deleting the entry from the downloads list, but not the file itself.

    There is technology known as RMS which you could set series of policies like only members in the company could access certain documents and if someone copy them and attempt to run them in another PC or outside company, it won't work. Take a look at:
    http://blogs.technet.com/b/rms/archive/2013/08/29/the-new-microsoft-rms-is-live-in-preview.aspx
    https://technet.microsoft.com/en-us/library/dd277361.aspx

  • Cm.jar is working even after deleting the jar from Server

    Hi,
    To update the environment with the new changes we had manually copied the cm.jar into the respective folders but due to some class errors Deployment was not successful,So as a matter of trial we had deleted cm.jar from the respective folders and then we had ran the initialsetup,
    Strange thing what we have observed is that all the custom logic which was initially deployed through cm.jar was still exisiting in the applicationserver and are getting executed smoothly
    This is the process what we have followed
    Method 1:
    1)     Stop server
    2)     
    Copy cm.jar to SPLBASE/etc/conf/root/WEB-INF/lib
    Copy cm.jar to SPLBASE/etc/conf/XAI-APP/WEB-INF/lib
    Copy cm.jar to SPLBASE/ splapp/businessapp
    Copy cm.jar to SPLBASE/ splapp/ standalone/lib
    3)     Run InitialSetup
    4)     Start Server
    Method 2:
    1)     Stop server
    2)     Set Exploded directories to true
    3)     Initial Setup
    4)     
    Copy cm.jar to SPLBASE/splapp/applications/root/WEB-INF/lib
    Copy cm.jar to SPLBASE/ splapp/applications /XAI-APP/WEB-INF/lib
    Copy cm.jar to SPLBASE/ splapp/businessapp
    Copy cm.jar to SPLBASE/ splapp/ standalone/lib
    5)     Run InitialSetup
    6)     Start Server
    Method 3:
    1)     Cm packaging.
    Even after removing cm.jar from all places manually my custom code which I deployed initially is working. I could run custom batch and custom algorithm. Very Strange. I am not sure what I missed or where application is referring to.
    We want the old code to be removed permanently from server?Can you anyone help?
    Thanks
    shiva

    Hi Mr Shankar,
    Even if you have deleted the cm.jar file from respective location.It do exist in splapp.war file.If you will extract that file you will find the cm.jar file in /splapp/web-inf/lib/cm.jar location.So whenever you will run the initialsetup it will restore the cm.jar.This thing is happening in your case also.So delete the file from splapp.war and rebuild the war.This will solve your issue.
    Hope it will work for you.
    Regards
    sunil sahu

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • HT203200 Cannot delete the file from the itunes folder

    I cannont delete the file from the itunes folder because it tells me I need permission to do so.  I am the admin person for the laptop plus I have checked my permissions under the security tab in the files properties.  How do I delete this file to start again?  It downloaded 1.2GB of the file before the error message appeared, so its paid for and all but not looking like I'll get to watch it before the time runs out on the movie being available for me to watch. :-(

    Try deleting the file without iTunes running.
    When you next open iTunes it should then be marked as a missing file and you should be able to delete the entry from iTunes.
    Hope this works
    Regards,
    Colin R.

  • Delete the file from the external hard drive

    deleted adobe reader 10, delete the file from the external hard drive. how to restore

    What is your operating system & version?
    How did you "delete" Adobe Reader?
    What "file" did you delete?
    What do you want to restore?

  • List the files from server

    Hi Experts,
      I have a requirement in my application, that list out the files from the server in table and also delete the file. Pls specify the code.
    Regards,
    Kiruba.R

    Hi
    List all the files from server
    public void listServerFiles( )
        //@@begin listServerFiles()
        wdContext.nodeFiles().invalidate();
        IPrivateExperimentView.IFilesElement element;
        java.io.File file = new java.io.File( "D:\\Test");
        File list[] = file.listFiles();
        for( int i = 0; i < list.length; i++)
             element = wdContext.createFilesElement();
                  element.setFileName( list[ i].getName());
             wdContext.nodeFiles().addElement( element);
        //@@end
    Display the selected file
    public void onActiondownload(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiondownload(ServerEvent)
        IWDResource resource;
        String name = wdContext.currentFilesElement().getFileName();
        String path = "D:\\Test\\" + name;
         InputStream stream;
         try {
              stream = new FileInputStream(path);
              resource = WDResourceFactory.createResource( stream, name,
                                  WDWebResourceType.UNKNOWN, true);
              stream.close();
              wdComponentAPI.getWindowManager()
                             .createNonModalExternalWindow( resource.getUrl( 0), name).show();
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    Delete the selected file
    public void onActiondeleteFile(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiondeleteFile(ServerEvent)
        String path = "D:\\Test\\" + wdContext.currentFilesElement().getFileName();
        File file = new File( path);
        file.delete();
        listServerFiles();
        //@@end
    vinod

  • How to read the file from a folder.

    Hi All,
    How to read the file from a folder or directory from the non sap server / remote server.
    Regards
    Sathis

    open dataset filename for input in text mode
                         encoding default.
    filename is character type variable with the destination filename.
    Edited by: Jino Augustine on Apr 19, 2010 1:31 PM

  • How to delete the file with space in name

    Hi
    I want to delete the file "test ex.txt" file.
    i run the following command in command prompt.i can delete the file successfully.
    /bin/rm -f /mnt/"test ex.txt"
    I want to run the command from java.So i am using the following code
    String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
         Runtime rt = Runtime.getRuntime();
    process = rt.exec(cmd);
    The file was not deleted.
    How to delete the file with space in name?
    Help me

    Use the form of exec that takes an array of command + args.
    arr[0] = "/bin/rm"
    arr[1] = "-f"
    arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls.

  • How to delete the values from TKOMV at runtime after creating PO

    Hi,
      How to delete the values from TKOMV at runtime after creating PO from IDOC. I am creating PO through IDOC, subsequently need to create Sales order and again need to create 2nd PO with reference of Purchase Requestion(created with sales order). At the time creation of 2nd PO the Header conditions are appearing twice and net price value is appearing wrong.
    Thanks in advance.

    Hi Padma
    Can you do this activity once the company code is in to production. I guess you can not do this activity, if the company code is already in to live. Setting or resetting of the recon accounts will hinder the previous actitivity. Infact resetting of the company code is also not a good option.
    Any how, thanks for the inputs. Please let me know whether i can do this activity only at the subledger level which will not impact other modules. The one solution i can figured out is , reverse all the transactions for the corresponding asset in the year of takeover and pass the entries again in the same year correctly which will have effect in Subledger and also in general ledger. But the business people will not allow this, since for a big client it will require lot of authorizations and approvals. Infact the vendor also, is cleared. So we have to reverse the cleared documents as well which is again a task and require approvals as well.
    Thanks and regards
    Seshu.

  • Hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.

    hi, i purchased a 2 dvd digital set. i cant just download it straight to my ipad. they said i have to down load it to my i tunes, then can transfer to i pad. im not seeing how to click the files from my email, and get them into the i tunes acct... ugh.
    i do not have a mac home pc. just a regular pc

    I had the same problem after I gave my old iPad to my parents and tried to install Netflix. This is what you have to do:  Open iTunes on your computer, the one you sync your iPad to. Then go to iTunes Store and search for and download Netflix app. After you download it, if your iPad is set to download new purchases it may start downloading on your iPad. If so, tap and hold to delete the app (because it is trying to install the new version on the iPad) Next step, go to the App Store on your iPad and find Netflix and it should say install since you already purchased it on the computer. Tap to install, and it will say the version is not compatible, tap to download a previous version. Click that and it will install the older version!    One more thing, if and when you sync to your computer again it will say something like " Unable to install Netflix on your iPad" Just click the box to never remind you again, because it's trying to sync the newer Netflix app to your iPad, but it doesn't work so it displays the message. The old app will remain on the ipad. Hope this helps, good luck

  • I somehow changed a video in my imovie to zero fps, so it just plays black.  The video still exists on my desktop but even when I delete the files from imovie and reimport them the file is still in zero fps and play black.

    somehow changed a video in my imovie to zero fps, so it just plays black.  The video still exists on my desktop but even when I delete the files from imovie and reimport them the file is still in zero fps and play black.

    I'm not sure of your question.
    Are you asking how to use Photoshop?
    Or are you asking for the dimensions of video iMovie uses?
    It edits in 720P HD, which is 1280x720.
    You can make it a bit bigger so you can zoom in.
    Much bigger then this is a waste of time.

Maybe you are looking for