Open file with javascript

Hello all ,
I used the package in the Denes Kubicek demo page: http://htmldb.oracle.com/pls/otn/f?p=31517:118:651492651950833::NO, to Export report data into XML file and it works fine.
I'm now using it in a Shared process being called from Javascript in the page, my problem is that in this way i can't download a file.
Javascript
<script type="text/javascript">
function carregar_report_id()
var temp_ir_id = document.getElementById('apexir_REPORT_ID').value;
var temp_page_id = document.getElementById('pFlowStepId').value;
var ajaxRequest = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=CARREGAR_REPORT_ID',0);
ajaxRequest.add('GLOBAL_IR_ID',temp_ir_id);
ajaxRequest.add('GLOBAL_PAGE_ID',temp_page_id);
var ajaxResult = ajaxRequest.get();
if(ajaxResult)
          //document.getElementById('teste_listagem').innerHTML = 'update_selected_template:' + ajaxResult + '
          //alert("XML criado: " + ajaxResult);     
          document.write(ajaxResult);
          //document.getElementById('xml_div').innerHTML = ajaxResult;          
else
alert('Erro de Aplicação, #create_ir_xml# contactar administrador!');
ajaxRequest = null;
</script>
Shared Process
DECLARE
id_region NUMBER;
BEGIN
select region_id into id_region from apex_application_page_regions where APPLICATION_ID= :APP_ID AND PAGE_ID= :GLOBAL_PAGE_ID AND SOURCE_TYPE='Interactive Report';
export_xml_pkg.print_report (id_region,'RelatorioIR_'||:GLOBAL_PAGE_ID,:GLOBAL_PAGE_ID);
END;
How can i open the xml file in a new tab with javascript??
Regards Pedro.

As a short term workaround, you could package it with Firefox on the USB flash drive to work around the tendency of the installed Firefox to look to its own profile folder.
Possible discussion forums:
(1) Add-ons - https://forums.mozilla.org/addons/
Not sure if they talk about webapps or just the more conventional kinds of add-ons.
(2) Mozillazine - http://forums.mozillazine.org/
Again, not sure there is a board for this yet.

Similar Messages

  • Process.start("winword", filename) can not open file with space in the path and name

    Hi,
    I am trying to write a class which can open file with selected application. for simplicity, now I just hard code the varaibles.
    the problem: if the path or file name has space in it, even it exist, winword still can not open it.
    could someone kindly show me what I did wrong and how to do it properly.
    Thanks in advance.
    Belinda
    public static class FileOpen
    public static void info()
    string path = @"c:\a temp folder\aaa 1.txt";
    if (File.Exists(path))
        // the file I am using in the sample does exist
         MsgBox.info("yes");
    else
         MsgBox.info("no");
    // working
    //Process.Start("winword", "c:\\aaa.txt");
    // not working
    //Process.Start("winword", "c:\aaa.txt");
    // not working
    Process.Start("winword", "c:\\a temp folder\\aaa 1.txt");
    // not working
    Process.Start("winword", path);

    string AppPath;
    AppPath = ReadRegistry(Registry.CurrentUser, "Software\\FabricStudio", "TARGETDIR", value).ToString() + @"help";
    string FileName = "'"+ AppPath + "\\ImageSamples.doc" + "'";
    try
    System.Diagnostics.Process.Start("Winword.exe", FileName);
    can any body please help for this.
    where i am making mistake?

  • Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path

    Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path using any of these perfectly normal methods:
    1. double-click file in the Finder (e.g in a Folder on your Mac or on your Mac desktop etc.)
    2. select file and choose "File... Open" command-o in the Finder
    3. drag file to the application icon in the Finder.
    4. Select file in Bridge and double-click, choose File.. Open.. or Drag icon to InDesign icon in dock.
    If you try to open an ID file named with a "#", you will get an error message "Missing required parameter 'from' for event 'open.'"
    This happens to any InDesign file that has a "#" (pound sign, number sign, or hash) in the filename or in the file path (any parent folder).
    To reproduce
    Name an InDesign file Test#.idd Try to open it in the Finder or Bridge (as opposed to the "Open" dilaog of InDeisng itself).
    "Solution"
    The file WILL open using File... Open... command-o while in InDesign application.
    Rename the file or folders that have a "#" (shift-3) in the filename.
    Report to Adobe if it bugs you.
    This does not occur in "plain" Leopard 10.5 nor Tiger 10.4
    Untested in Panther or before and
    Untested with CS3 and earlier in Snow Leaopard.
    Anyone have those and want to try this... ?

    In case this really bothers you: we've added a workaround for this into Soxy. If you enable the option, these documents will open fine on double-click.
    You need Soxy 1.0.7 from:
    http://www.rorohiko.com/soxy
    Go to the 'Soxy' - 'Preferences' - 'Other' dialog window, and enable 'Open InDesign via Script'
    (Irrelevant background info (it's all invisible to the user): the workaround works by special-casing how Soxy opens documents in InDesign: instead of using AppleScript, Soxy will use ExtendScript to instruct InDesign to open the document - which works fine).

  • Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program. This problem appears after opening 4 a 5 files.

    Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program.
    This problem appears after opening 4 a 5 files, rebooting helps another 4 a 5 times and appears again.

    I'd recommend reposting in the Boot Camp forum, that is where the Boot Camp and Windows gurus hang out.
    Good luck.

  • Adobe Bridge CC crashes when opening file with Photoshop CC or Camera RAW!

    Adobe Bridge CC crashes when opening file with Photoshop CC or Camera RAW!
    - Tried to Reset the preference with CTRL + Click.
    - It's just new clean install didn't do anything with it yet.
    - Windows 8.
    Any help?

    Just that one project, or any project?  Can you create new projects?

  • Photoshop CS6 (Mac) crashes when opening files with type or using the type tool

    Hi,
    Photoshop CS6 keeps crashing when using the type tool or when opening files with type on it. I've quit suitcase, disabled the suitcase plug-in, reset the preferences in Photoshop there's no crash report coming up either the application just dies! I am currently trying a system restore from time machine to see if that works!. Any other suggestions would be greatly appreciated.
    Many thanks
    Olly

    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html

  • Can´t open files with camera raw

    Hi!
    I use Adobe Photoshop CS3 and the option to open files with Camera Raw is disabled in Bridge and in PS.
    Can anyone help?

    While each situation can be different this has been discussed on several threads. Scan down the list or do a search. If you can't find the answer, post a note.

  • Indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.

    indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.
    thanks in advance!

    If you are unable to enter the passcode into your device, you will have to restore the device to circumvent that passcode.
    Is the music purchased from iTunes? If it is you can contact iTunes support and ask them to allow you to re-download the music that you purchased from iTunes.
    Also, do you sync the device regularly? When syncing an iPod Touch/iPhone a backup file is made. That backup file doesn't contain your music but it does contain your address book, application data, pictures, notes, etc. After restoring your device, you can try restoring from the last backup that was made of your device so you will not have to start over completely from scratch.
    Hope this helps!

  • Unable to open PDF files with Adobe Reader, Mac trying to open files with Quicktime instead, but not succeeding. HELP!

    Unable to open PDF files with Adobe Reader, Mac trying to open files with QuickTime instead, but not succeeding. HELP!

    Hi BDAqua,
    Thanks for the info, I dragged a PDF to desktop ctrl-, get info. change all to open with adobe.
    Problem solved, many thanks for a quick response.
    Barry69

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • Developer: How can I let people open files with my program?

    Hello Everyone,
    I just finished my program for the Mac, and decided to make it an application.
    I used Platypus to make my program into an application. Unfortunately when I try to open a file with my program (control + click on file + open with -> other), my application is grayed out and I can't select it. I see it there along with the other applications but I can't select it like I can Mail or TextEdit.
    I read somewhere I had to use XCode to let people open files with my program but I have never used XCode and I have no idea how to do that. Any help would be appreciated.
    Thanks,
    Nick

    You've posted in the wrong forum. This is the OS X Leopard Installation and Setup forum. You need to post your problem in the Developers forum. Also, since Platypus is not an Apple product, you should visit it's developers forum for assistance. The Apple Discussions is intended to assist users with problems and questions about Apple products only.
    To use XCode Tools you need to install it from the Optional Installs folder on your OS X Installer Disc One. It comes with documentation. More assistance can be found at developer.apple.com.

  • [Flex mobile] Open file with a Filebrowser

    Hi everyone,
    i want to be able to open files with a file browser in my app, but the browse dialog which is opened by the File.browse() method only displays / opens music or image files. Furthermore im not even able to change the Dialog header when running my project on android:
    dir.browseForOpen("Please select a file");
    this doesn't work on android, neither does the next code-block:...
    var dir:File=new File(File.userDirectory.url+ "/geoforms");
    var filter:FileFilter=new FileFilter("Documents","*.txt");
    dir.browseForOpen("Please select a file",[filter]);
    So what do i have to do, to be able to show a decent file select dialog ?

    Nobody any idea?
    i tried it like its described in this article:
    Declaring file type associations
    http://livedocs.adobe.com/flex/3/html/help.html?content=File_formats_1.html
    but i can't get it running for my mobile project. The  type associations works fine in my desktop air application but it doesn't work in my mobile app. Is this  type associations stuff supposed to be working on mobile devices / android?

  • Xdg-open is opening files with no extension in wine notepad

    xdg-open is opening files with no extension in wine notepad. This is really annoying. How can I change it?

    Click on "Browse" button at the "Open With" dialog and navigate to the location, where acrord32.exe is located. Preferebly, it should be this location "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" unless you have installed at some customized location.  I'm assuming you have installed Reader 9. Once you add Adobe Reader in the open with list, it would continue to appear next time onwards.

  • Where do you select which program you want to open files with a particular extension?

    Where do you go to select which program should open files with particular extensions?

    if you right click on the file and select get info, a window will open. Click on the "open with" and the window will expand. There you can select which application you want that document to open with. If you want to open ALL documents of that type with a specific application click the change all button.

  • How do i open file with text recovery converter?

    I have created a word document and saved it. When I try to open it I am told ‘this file may be corrupted. Open file with text recovery converter’. I do not know how to do do this. Pleas help.

    Sounds like you are using Word. Therefore post in Microsoft's forum:
    http://answers.microsoft.com/en-us/mac?auth=1

Maybe you are looking for

  • Brand new macbook pro freezing when on the internet and won't fix itself

    Three times tonight I have been on the internet and out of nowhere my macbook pro has frozen. I am unable to move the mousepad or click on anything or click out of the applications. I have to power off the computer to make it work again. How can i fi

  • Creating a custom page size not working

    Hi, I have Pages 3.0.2 and I wanted to create an PDF for an ad that our playgroup wants to submit in a local paper. The ad needs to be 10cm x 6.2cm so I went to the Inspector dialog and the Document tab and then selected Page Setup. In the new dialog

  • No VGA

    Ok I just bought a MSI 790XT-G45 Motherboard and windows 7 and a WD 750G Hard drive. My problem is it has no vga serial for monitor so I can't begin setting up the windows. Am I suppose to install my PCI E graphics card first. I have a ZOTAC 9800GT.

  • Can't Open Windows Created CD

    One of my clients sent me a CD that was apparently created on his Windows box. When I insert the CD into my G4 or G5 I get a cannot recognize splash with the Initialize or eject options. I have never had this happen before. Is there anything I can do

  • BPMon Z logical components

    Dear experts.. Background: SOLMAN 7.1 Context=> BPMon configuration. I am trying to create  a Z logical component. Z logical component is only required in order to describe a "non sap system".  We only need to the Z logical component for "graphical "