How to remove the file from the client machine

Hi all
We use the database: oracle: 10 g,.
and forms/States 10g (developer suite 10g - 10.1.2.2).

can someone help me how to remove the file from the client computer in the location specified using webutil or everything
(I tried with webutil_host & client_host but this only works for the application server)
Thank you.

Hello

Checkbox not tested.

PROCEDURE OPEN_FILE (V_ID_DOC IN VARCHAR2)
IS

--------------------------------------------------------------------------------
-- Open a stored document --

--------------------------------------------------------------------------------
LC$Cmd Varchar2(1280) ;
LC$Nom Varchar2(1000) ;
LC$Fic Varchar2(1280);
LC$Path Varchar2(1280);
LC$Sep Varchar2(1) ;
LN$But Pls_Integer ;
LB$Ok Boolean ;
-- Current Process ID --
ret WEBUTIL_HOST.PROCESS_ID ;
V_FICHERO VARCHAR2(500);
COMILLA VARCHAR2(4) := '''';
BOTON NUMBER;
MODO VARCHAR2(50);
URL VARCHAR2(500);

Begin

V_FICHERO := V_ID_DOC;

LC$Sep := '\';--WEBUTIL_FILE.Get_File_Separator ; -- 10g
LC$Nom := V_FICHERO;--Substr( V_FICHERO, instr( V_FICHERO, LC$Sep, -1 ) + 1, 100 ) ;
--LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
LC$Path := 'C:';
LC$Fic := LC$Path || LC$Sep || LC$Nom ;

If Not webutil_file_transfer.DB_To_Client
(
LC$Fic,
'TABLE_NAME',
'ITEM_NAME',
'WHERE'
) Then

Raise Form_trigger_Failure ;

End if ;

LC$Cmd := 'cmd /c start "" /MAX /WAIT "' || LC$Fic || '"' ;
Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
If LN$But 0 Then
Set_Alert_Property( 'ALER_STOP_1', TITLE, 'Host() command' ) ;
Set_Alert_Property( 'ALER_STOP_1', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
LN$But := Show_Alert( 'ALER_STOP_1' ) ;
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Raise Form_Trigger_Failure ;
End if ;

If Not webutil_file_transfer.Client_To_DB
(
LC$Fic,
'TABLE_NAME',
'ITEM_NAME',
'WHERE'
) Then
NULL;
Else
Commit ;
End if ;
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;

Exception
When Form_Trigger_Failure Then
Raise ;
End ;

Sarah

Tags: Oracle Development

Similar Questions

  • How to remove unused files from my account site live hotmail?

    original title: unused files

    How to remove unused files from my account site live hotmail?

    The question you have posted is bound using Windows Live (hotmail) and would be better suited to the Windows Live Help Solution . Please visit this link to find a community that will provide the support you want.

  • How to remove unnecessary files from my mac computer?

    HW to remove unnecessary files from my computer without following these instructions

    MacKeeper

    Human inside

    Results of the analysis of your Mac arrived.

    The State of your system is:

    seriously

    MacKeeper found in:

    327 items

    The amount of junk mail on your Mac is:

    507 bytes

    5 cleaning
    Elements

    1 security
    Elements

    Optimization 0
    Elements

    Activate MacKeeper

    We strongly recommend that set you all the found items. Otherwise, you may experience:

    5 cleaning items

    1 security features

    Low because of unnecessary files disk space

    Theft of personal data:
    user names, passwords.
    credit card

    Already set free: 321 items.

    Activate MacKeeper
    Best regards
    Constantin
    Your Apple certified
    Technical support engineer
    1 (888) 572-5876 1 (800) 462-715 0 (808) 189-1280
    This e-mail has been sent to *.
    Please add [email protected] to your address book to ensure our emails reach your Inbox.

    If you prefer not receiving news from us, here is the link to unsubscribe.
    To change your communication preferences, use this link. Kromtech Alliance Corp., Richmodstrasse 6, 50667 Cologne, Germany Privacy policy

    Remove MacKeeper rather - we know junkware that will try to entice you to pay money, the company has had several lawsuits against it for their business practices.

    http://AppleInsider.com/articles/15/08/10/MacKeeper-to-pay-out-2m-in-proposed-CL ass-action-regulation

    Ignore it and delete the app. Where you get/download MacKeeper?

  • How to remove unwanted files from the local root folder of the site?

    Hello

    I work with Dreamweaver CS4 on a Windows PC. I have finished my site but I have a lot of files in my local root folder that I don't want to upload to the server. These unwanted files are for most of the photos that I should not be used in my site. I do not understand how to download the site on the server using ftp and remote folder in Dreamweaver. I suppose that if I move the page html files to the remote folder that my photos will not be associated with these html files automatically. I used a Dreamweaver template during the construction of the site. I wish I had a folder with only the necessary files for the site (all html pages and a folder of images) to upload to the server. Is there an easy way to move all my pages and images associated with a folder or remove all unwanted files in the local root folder? As I see it now, I'll have to go through all my pages and write down each title of the photo and then go back and delete each unwanted file. This seems a lot of your time, so I thought that there must be an easier way, I hope.

    Any help or ideas will be of course very appreciated, thanks, dluthier

    I guess you mean 'work' files, not the images that you use in your Web site.

    If they are not related to all pages of your site, you are free to move by using your computer's file management tools. I can give you specific instructions, if you wish, but the short of it is that you do not keep them in the folder root of your site at all.

    In my way of working, I have a folder for each client that includes:

    • The correspondence of this client folder
    • Folder to 'Work'... the PNG images, etc., or of the images from the client
    • Record the site root

    When I get e-mail, I save the message in the appropriate folder of correspondence, I save the images etc in the folder of 'Work' to the customer and I only save images and other who have already been optimized in the Site folder, keep it as intact as possible.

    Even if the general warning must always use the files Panel to move files around, that applies to files which are linked and form part of the structure of your Site. Moving your files 'work' outside of the structure can be carried out safely in windows explore your PC.

    That said, if you need to download and there are files you want to download, or to move, you can 'hide' the in the files Panel by right-clicking on the file name and choosing 'Cloaking '.... "in the context menu that appears.

    To the point that the image files that are downloaded to the remote site will not 'automatically' be associated with your html files. That is right. Unless you have configured explicitly links or associations between files, images will not associate themselves!

    On the subject of 'automatic' way to do this, you can make a link to check on all of your local site. Window > results > Link Checker will bring up the appropriate window, which will give you the choice: broken links, external links and orphan files (this is the one you want). Use the green triangle tower at the left end of the Link Checker to set your auditor... Current Local Document or a set current site.

    If you want to make a checklist to ensure that you move them all, you can save the report by clicking on the small icon "Floppy" under the Green turn the triangle. Who will be on a file text and make up a dialog that you save the report, which will show the broken links, external links and orphaned files. After you move the files to your heart's content, rerun the link check and confirm that you moved the files you want to move. Make sure that you DON'T move files consciously... do not move the .htaccess files or .cgi files, etc.

    Who will save you from actually having to 'write' file names!

    Z

  • Apple music - how to remove audio files from my iPhone 6

    Am using Apple's music, also have a library of large 20,000 + iTunes (saved with iTunes game).  Before the launch of music Apple had a number of elements (693) downloaded to the phone.  No need to have too much space.  Tried to remove it from iTunes (Device - music) without success.  Any solution please.

    If you're all in with Apple music streaming to your iPhone, then you can delete the local music files.

    To do this, you can temporarily disable the Apple music and iCloud music library on your iPhone from settings - music. Then restart the music app and you should see the local songs that are stored on your iPhone. You may have to disable iTunes game as well.

    You can follow this procedure to remove the remaining local music. http://www.IMore.com/how-delete-all-locally-stored-music-your-iPhone-iPad-or-IPO d-touch

    Now you can turn on Apple music and iCloud music library and start broadcasting your music again. Note that you can download and make the songs Apple music available offline on your iPhone If you never want to listen to music without having to flow on cell phone. This is useful if you do not want to exceed a monthly data Cap.

  • How to remove temporary files from Photoshop?

    I use Mac a friend and in Photoshop, from time to time he always tells me that the scratch disk is almost full and cannot perform actions until I get rid of things on the computer. I delete the files, but after a while he continues to to - I would rather just delete temporary files from Photoshop instead of files of my friend. But I was not able to find any where - where is this folder? or what I should enter in a search?

    You don't need to do it manually.

    You can clear the scratch disk:

    Edit-Purge-All

    You will lose your history if you do this (all cancellations).

    Basically you run of space on the drive system - not a good situation. I would like to talk to your friend to check maybe some files and then remove them. Or buy a firewire drive and use it as a scratch disk.

    Do not delete the files from your friend if you want to stay friends.

    PBC

  • Is it possible to remove a file from your time Machine?

    Is it possible to remove a file (s) from your time Machine?  When I tried, I got a pop up says that backs up the items cannot be changed. How do you get the room on your Time Machine disk?

    Time Machine takes care of its own needs of storage itself, without interfere you in the process. When the TM drive is running out of storage space, TM will remove older backups if necessary.

    Time Machine backups are very sophisticated in what is backed up at what time. It is not as simple as just delete the backups 'elders '. Let TM its magic in itself.

  • How to remove unnecessary files from the hard drive using Lightroom.

    Hello

    I use Lr 5.7 on Win7 64-bit. I would remove completely some old files and their contents that were part of my previous, very messy organization. I still have parents and masters images files, so I have no need extra junk on my hard drive.

    I tried to do a right click on the file, but the only option is to delete the catalog. I saw posted solutions that say click on icon less. I don't see an icon less anywhere. As far as I know, Lightroom really doesn't want "delete me" anything.

    Thank you!

    Dave

    have you tried to delete images? You can't delete the folders...

  • How to remove 'other' files from the HD drive? They take place 82 Gig of HD player!

    How can I clean the ' other folders than ae picking up 82 Gig of storage HD drive?

    The following can help:

    OS x: what is 'other' space about this Mac? -Apple Support

    What is 'Other' and what I can do about it?

  • How to remove old files from backup under vista

    How can I delete old backup files?

    Hi AcieWorkman,
    Thanks for posting in the Microsoft community!
    I understand that you want to remove old backup files created using the Backup Wizard. Please correct me if I'm wrong.
    Please follow the steps under How can I delete a backup I created using the back up files Wizard?
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.
    We can't wait to hear back on your part.

  • How to remove a file from a site

    I have an unwanted file in my site. How can I remove it?

    Select file in the files (F8) Panel.  Select display Local or a remote server (in the office where the unwanted file).  Press the DELETE key.

    Nancy O.

  • How to remove the background files?

    Sometimes, back my little girl has decided to add most of our photos as background option. Now, I have many, many, many photos listed in my wallpaper.

    How to remove these files from here? Or simply delete files background all together?

    Hi lonnarz,

    Your background images are stored in C:\WINDOWS\Web\Wallpaper
    Microsoft® Security MVP, 2004-2009

  • How to remove the file from Dr. Watson?

    How to remove the Dr. Watson File?

    Hello

    1. which version of the Windows operating system is installed on your computer?

    2. Why do you want to delete file Dr.Watson?

    3. are you face any problem with Dr.Watson?

    4. do you get an error code or error message?

    I suggest you to refer to the following Microsoft article and check if it helps.

    How to disable or enable Dr. Watson for Windows:

    http://support.Microsoft.com/kb/188296

    For more information, see the following Microsoft article.

    How to fix the program with Dr. Watson errors: http://support.microsoft.com/kb/275481

    Hope the information is useful.

  • How to remove the file 'ArcadeWeb' from my computer? It tries to connect to the internet whenever I connect.

    When I tried to remove this file from my computer, I get an "access denied" message, make sure that the disk is not full or write protected and the file is not currently in use.  Also, I tried the shift + del combination and that has not worked as well.

    Hello

    ·          What version of the operating system is installed on the computer?

    To uninstall Arcade Web, follow the steps from the following link:

    http://www.arcadeweb.com/deactivate.php

  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

Maybe you are looking for