Controling the 'name' of a file download

function openPDFWordTwo(thisObj,pdfURL){
//For Opening Word
formTitleId = thisObj.id.substr(0,thisObj.id.lastIndexOf(':')) + ":hiddenFormTitle";
formTitle = document.getElementById(formTitleId).value;
window.location = pdfURL;
   return false;Here is my code that opens the popup window for my page to download a word document by JavaScript. Right now it downloads the correct file but names it servername.doc. I would like to change it to formTitle.doc. Is there a way I could do that through code or is it server style?
I was looking at HTTP responses but I haven't figured out exactly how they work yet. Any good tutorials?
Cheers

I realize this, I googled read about it but all the examples I have found completely redo the process, html uploading the file etc. I have no idea what you're talking about. HTML is just a markup language. With regard to file uploading it only provides you a <form> and a <input type="file"> to represent a file chooser and with regard to file downloading it only provides you an <a> element to represent a download link or a <form> and <button> element to represent a download button. It has completely no capabilities to process a file upload or download. It is the server side code which does that, Java/JSP/Servlet for example.
My question was if there is a way to keep my html keep the way the file is accessed and changing the name.My answer was under each: if you want to try this with JavaScript, please realize that JavaScript != Java. With other words, you're here at a Java forum at the wrong place. At any way, I don't see why you insist to do this in JavaScript. It's a client side scripting language.

Similar Messages

  • When I click on the Start Icon and type the name of a file I am searching for none appear.

    When I click on the Start Icon and type the name of a file I am searching for none appear.
    Using Widows 7

    Are you searching for a file that you downloaded via Firefox?
    If that is the case then you can check the Download Manager (Tools > Downloads) and if that file is listed there then right click that entry and choose > Open Containing Folder. If that entry is grayed then the file is no longer in the original download location and possibly removed by AV software.

  • Can we control the triggering of sender file adapter

    Hi,
    Can we control the tiggering of Sender file adapter with option of Run OS command before message processing
    This option is available in Sender communication channel, what are the limitations of this option?
    My actual requirement is to see the target folder whether it is empty or not, if empty then I can trigger the interface.
    For this I want to write shell script whihc execute at OS level to check whether the target is empty or not, But the constraint is will this can control the triggering of sender adapter.

    Hi Sekhar,
    I guess this can help you control the file pick up.
    If your shell script works well then using the same you  can modify the filename or its extension if the target folder is empty.
    Say in the sender file adapter you set the source-filename as "inbound_*.ready". Now when originally the source file is dropped into the source folder (by any other process) let it be named as "inbound_001.pending" and your script will change the file name to "inbound_001.ready" if the target directory is empty. I dont think you need to use the pre processing OS command for this.
    Does it make any sense?
    Regards,
    Suddha

  • Can we get the name of fmx file at runtime

    Hi all,
    can we get the name of fmx file which is doing some DML operation on a specific table Can we back track which fmx module has done DML on a specific table. The reason I need this because I've 7 different fmx files which are doing some DML operation on a specific table and these fmx files were used by different users. Not necessarily 1:1 For eg. one user can do DML through 3 different fmx files. So in such case if I want to want to know from which fmx file this DML has take place .How can I achieve that. I know I can get the oracle username through v$session but it will not suffice my needs. I need the name of fmx file also.
    I'm using:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Any help?
    Warm Regards
    Percy

    Percy,
    For that you can set the Module Field in the V$session in each form by,
    DBMS_APPLICATION_INFO.SET_MODULE(MODULE_NAME => :SYSTEM.CURRENT_FORM, ACTION_NAME => USER);Write this in each form, and then you will get the form name in the V$SESSION's module field with form name.
    Hope this helps.
    Regards,
    Manu.

  • Change the name of a file.

    Hello, I don't how can I change the name of a file ?.
    Somebody can help me, please?
    For example : c:\out\prove1.csv to  c:\out\prove1_09112007_163001.csv
    Thanks

    Another way would be to use the FILE_COPY and
    FILE_DELETE of the class CL_GUI_FRONTEND_SERVICES to first copy the file and then delete the other one.
    REgards,
    Rich Heilman

  • BEx Brodcaster for Workbook - Cannot change the name of attachment file.

    Dear All Experts,
    I am using the BEx Broadcaster to distribute report of workbook via email. The name of attchament file in email is the technical of workbook. I want change the name of attchment file and found this thread
    [Broadcasting Workbook - Change attachment filename|Broadcasting Workbook - Change attachment filename] that reference to method in background process. Can I create customize program or method to change the name of file.
    Thank you and really appreciate your help.
    Zilla D.

    Hello Zilla,
    By SAP methods, this is not possible. There is no way to do that. May you can suggest it on our Community of Innovation. See note 11.
    This is not only your concern. Some customers already request this functionallity.
    Best Regards,
    Edward John

  • How to control the name of custom field in data base table, added by AET

    Hi,
    I have added the one custom field by Application Enhancement Tool (AET).
    The name of custom field has been added in the data base table as ZZFLD000004 by AET.
    I need to add the some meaningful name like that ZMYPROB.
    How can I control the name of custom field in the database field through AET?
    Thanks,
    Amit

    Got the answer.
    Need to click on the Enable Expert mode, then custom field name will be editable.

  • How to control the speed of video file in Window media player

    Hello
        I had worked on LabView for a week & i am new to LabView.i am working on Labview 8.5 and i want to control the speed of video file in windows media player on front panel.
    Is it possible?and if yes send me some examples for this & steps to do this.
    Thank You.

    few minutes back only i posted a reply to similar question here

  • Calculate the time remaining during File Download ?

    Hi
    I need to calculate the time remaining of file download . I am using NSURLConnection for file download in Cocoa . I am able to show the download progressbar . I want to show the time remaining for complete download and it should vary if network signal fluctuate .
    Please guide me ...
    Thanks

    The tricky part is to define what is a disturbance
    First do once  a correlation to find and correct a shift in the signal
    Look at the (absolute or squared) difference of both signals and define a threswhold and use the threshold detector vi
    from the point location(s) calculate the time and log it.
    And have a look at the waveform monitoring vis....
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • How can I find the name of a file I downloaded four months ago?

    I downloaded a file on either February 15th or 16th. Embarrassingly, I've lost the file, simply by forgetting its name. I need to be able to search my download history, by date. Does anyone know of a way to do this? I know that the history is kept that long, and that I haven't erased the history. Finding the date that I visited the website was easy using history and an approximate date, but download history is less intuitive.
    And, no, revisiting the website doesn't help; the only way to find the name of the file there (it's an ebook) is to buy it again, which is NOT what I wish to do.
    This was in Windows 7 Home Premium Edition, with FireFox v. 28.0 (yes, I know it's outdated; I haven't been using that computer much lately). I don't know what version of FireFox was installed at the time of the download -- whatever was most current at the time, as I usually make a practice of installing updates.

    The downloads folder in the history manager? I'm not sure what you mean.
    When I click on History, I see what I've put in the screenshot. Then it starts telling me where I've been today. Nothing about downloads, per se. I've been getting at those through Tools/Downloads.
    I have FireFox set up to ask me where downloads should go, rather than automatically sending them to my Downloads folder in Windows, and even if it had automatically saved to Downloads, it wouldn't still be there now.
    In a pinch, I suppose I could skip the first few in the downloads list, and then start right-clicking on individual downloads and selecting Go To Download Page, but I was hoping there might be some way to narrow it down, by getting at the date on downloads. That's fairly easy in History, but I don't see any way to do it in Tools/Downloads.

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • How to read the name of .csv file from a particular folder using Oracle.

    Gurus,
    I have a folder called 'data_dir' in Oracle Server and it contains 10 different .csv files and the name of the each file is being suffixed by date and time(24 hrs format).
    First i need to read all the file names then i have to process those files by UTL_FILE to load the data into a relational table.
    Is there any mechanism is available in Oracle to read the file names?
    (In this case all the 10 different csv file names)
    If so, then please help me accomplish this.
    Thanks in advance.
    Regards,
    Venugopal.K

    Is there any mechanism is available in Oracle to read the file names?Sounds to me like you need to use External Tables (*not* utl_file).
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_concepts.htm

  • File name conflict in File Download filter in Policy Studio

    Hi,
    I am trying to use File Download filter to download the file from sftp server and saving it on local machine using Save to File filter. File format is ABC_MMDDYYYY,zip
    i need to get the name of the file at run time. what would be Attribute Selector i should use in File Download filter for File name. I tried ABC_${date}
    but its not able to understand that format. i tried lot nothing seems to be working.
    Please help.

    i am Getting Auth Fail error in trace logs when creating Policy for SFTP File Download and Saving it.
    Problem Description
    Getting Auth Fail error in trace logs when creating Policy for SFTP File Download and Saving it on server.
    Steps to Reproduce
    1. Create a policy with Add HTTP Header and FileDownload filter with SFTP server details (need to specify fingerprint)
    2.Add Save to File filter with correct path and file name.
    3.Add scheduler that runs after every 20 sec
    4.Verify file at Save location and check trace logs.

  • How can I copy the name of a file, that I selected by a click?

    Hi,
    I have a device controled by a Excell (VBA) interface. Truogh this interface I control the motors and Diadem (for the report) and the data are save in a database. When I  use the load button from the excell, the VBA application call the script from Diadem  Load_DATA_BOF.VBS, (after I complete the new data for the report), and make the report.  Now to make it work, I copy the name of the filename that I want to load in a TextBox, and all the data are store in a txt file( protocol_for_load.txt) and Diadem takes from there the data for the report.
    What I want to do is to fill automatic the field of the filename in the  protocol_for_load.txt, when I select the file in  Diadem.
    Can this be done?
    Thank you for your time
    Solved!
    Go to Solution.
    Attachments:
    BOF script.zip ‏177 KB

    Hi Brad,
    I find out how to copy the name of a selected file ( with filedlgfile) and now I want to open the text file ( with the name the same like the file loaded)  so I can read the data from inside, but the command textfileopen from the script can't support a variable in the description, I thing.
    Fno = textfileopen ( filenametxt, tfread)
    Please look in to my script to understand better.
    I need to open the txt file with the name the same like the file loaded, to take the data and fill the report. This I need to do in Diadem Script, because I will call the script trough a VBA interface.
    Sorry for not being more clearly  first  time, but I am a beginner in working with VBS.
    Attachments:
    Diadem script.zip ‏69 KB

  • In APPS who to control the name of XML ouput

    For all apps we have APPCPNAM Env variable for output name.
    For XML PUBLISHER the output name is like
    <SHORTNAME CONC>REQID<NUM>.<FORMAT FILE> .
    There is any way to control the file name ?
    Regards,
    ofer

    I check There is env parm that call "APPCPNAM=USER.REQID"
    that is for all CONCURRENT PROGRAM execpt for XML PUBLISHER.
    I also try to open SR but ORACLE SAID it's CUSTOM.
    SR No.6213767.993
    Thanks any way.
    Ofer

Maybe you are looking for

  • Packaged ColdFusion 9 Datasources not importing to ColdFusion 10 64-bit on another computer

    I installed ColdFusion 10 64-bit on my I new 64-bit work computer. To save time and effort; l decide to use Packaging & Deployment option on ColdFusion 9 32-bit on my old computer to archive all my data sources and deploy on the new server. I selecte

  • Price difference between Purchase Order and GR

    Hi We have a scenario where we have PO based IR and for the particular Purcahse order we have 4 GRN (out of which 3 goes by Standard Purchase Order Price) whereas one GR have with an Higher value than PO.But all the IR's have been posted with Purchas

  • Undefined property when it does exist

    Can anyone help me grasp why this isn't working? I keep getting an 1120 error about the property, but i know that it exists. This is the HTTPService: <mx:HTTPService id="userupdate" url="https://server/flex/usrchgpwd.php" result="checkADMUsrPWD(event

  • Multiple Cubes refresh in parallel

    Hi I have an analytical workspace where i have modelled a set of conformed dimensions and some dimensions specific to specific subject areas. There will be multiple cubes (Partitioned and some non partitioned) in this analytical workspace. Would like

  • ITunes - cannot edit info

    I am unable to make any changes in iTunes. Usually a slow double-click allows me to change Title, Artist, Genre, etc. When I right-click and select get info, the fields are all unavailable. Is there something I can do?