How To Call Save As Dialog?

Dear All,
I have OAS Forms And Report Services10g(9.0.4) on Window 2000 & service pack 4 And 10g Developer Suit.
To deploy application on web..
How can I call "Save As Dialog" to save a file on the user's machine through When_Buton_Pressed trigger. The file was generated by the database.
Any help will be nice.
Thanks

Thanks for code
but when i place on when button trigger it gives this error dialog
Oracle.forms.webutil.file.FileFunctions bean not found.
WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
the code was
Declare
LC$Target Varchar2(256) := 'text.txt' ; -- file name
LC$Fic Varchar2(256) ;
Begin
LC$Fic := WEBUTIL_FILE.FILE_SAVE_DIALOG
'D:\',
LC$Target,
'Sélectionner un fichier'
If LC$Fic is null Then
Return ; --// end user has pressed cancel
End if ;
End;
help needed & Please tell me How can i verify that mine installation & configuration of webtill is correct.
Thanks
Rana Adnan

Similar Messages

  • In javascript how to invoke save as dialog box ,which saves .pdf files only

    Through javascript i generated a save as dialog box. the main problem is , it is only saving .html and .doc files by default. how to restrict it to save only .pdf files.
    the code i used is
    function SaveFile(fname)
    document.execCommand('SaveAs', null, fname)
    <input type="button" value ="save" onclick="SaveFile('');">
    /**********************************************************************/

    this is actually a Java forum its slightly different from javascript
    but try this not sure if it helps
    <input type="button" value ="save" onclick="SaveFile('.pdf');">

  • How to suppress Save As dialog when using the Close button on an editable pdf

    Environment: Windows 7, SDK 9, Adobe Acrobat Pro X, Visual Studio 2010 Professional
    Summary: when a document is opened for editing using automation, edited, then closed using the "Close" button, the confirmation dialog appears, "yes" is selected and then the "Save As" dialog appears.  It should save without the "Save As" dialog in the same way it does were the document opened from Adobe Acrobat directly.  My question is, is there any flag to set which governs whether the "Save As" dialog appears as part of the close document process.  It is behaving as if the document is read-only upon close. (it isn't)
    This is how the document is opened from C++:
    if(SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe9::Acrobat::CAcroAVDoc), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk))){
    hr = OleRun(pUnk);
    if (SUCCEEDED(hr)){
    if (SUCCEEDED(hr = pUnk->QueryInterface(&pAVDoc))){
    hr = pAVDoc->Open((BSTR)CComBSTR(strPath), strDocName, &bRet);
    Even when the plugin is removed from the plug_ins\AcrobatSDK directory, the behaviour is the same.
    Another reproduction is running the BasicIacVC sample, commenting out all lines from gAcroPdDoc->Close(); in InitInstance() and returning TRUE.  If an editable document is opened using the sample, edited then closed using the "X" button, the confirmation dialog is followed by a "Save As" dialog as if it were a read-only document which it is not.
    Any suggestions would be appreciated.
    Regards,
    Evan

    Yes, it does.  (as long as the pdf has been opened via a COM interface)

  • How come the "save as" dialog box keeps popping up whenever I try to use alt codes?

    I type with diacritical marks regularly but recently, when I press and hold Fn + Alt + the numerical code, it brings up the "save as" dialog box. This seems to be a Firefox-specific issue because this doesn't happen on Microsoft Word + other programs. I am wondering how to disable this "save as" dialog box shortcut, or how to just get the alt codes to work.

    Hm, this is the list of add-ons that are currently enabled on my browser:
    <br><br>
    Dictionnaire française moderne (it can't be this one because I just installed it today)<br>
    Java Console 6.0.18<br>
    Java Console 6.0.25<br>
    Java Console 6.0.20<br>
    Java Console 6.0.24<br>
    pdfit (doesn't seem like it's this one either)<br><br>
    Conclusion: might it be one of the Java Consoles?
    Thanks!

  • How to use save as dialog box in swing

    hello,
    at the time of start the application by clicking the button, i hv to give the path to save my output file, how can i used this dialog box
    thanks

    [http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html]

  • How to get save as dialog box.

    i want to open a "save as" dialog box from file menu.and i want to specify by myself which type of item should be in "Save as type" drop box in the save as dialog box.how to do it???????plz help........thanx in adv.

    I believe that the Sun tutorial over [How To Use File Choosers|http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html] will be able to give you the answer for this one. This and the JFileChooser API and other associated APIs.

  • How to Avoid Save As dialog when Saving

    We recently upgraded Adobe Reader X to XI.  One difference between the two is the behavior of the Save function the first time it is performed.  In Reader X, when Save was selected, the file would simply save the current file, overwriting the original file.  In Reader XI, when Save is selected, the Save As dialog box appears, and if the user does not change the file name or path, a warning pops up asking whether the existing file should be overwritten. I understand that this behavior is a result of Protected Mode being enabled.  Is there a way to keep PM enabled, but always allow files to be overwritten as was the case in Reader X? 

    Yes, it does.  (as long as the pdf has been opened via a COM interface)

  • How to Display save as dialog box.

    Hai all,
    am having a jsp page in which i display some values in Table. if i click a button it should show a save as dialog box, from that i should give a file name then all the content must be save in that file name. Any one give idea to open save as dialogbox from button click.
    Thanks.

    You can t do what you want.
    But you can do something similar..
    In stead of save as do a submit to a servlet and have you servlet download the file to the client
    download by setting your contenttype to
    response.setHeader("Content-Disposition", "attachment; name=\""+filename+"\"; filename=\""+filename+"\";");

  • How to give save as dialog box using servlet?

    hello,
    i am building one application where i am generatinfreport in excel format.
    now the file generated is output.xsl.
    this is in c:\bea\wlserver6.1 directory.
    now i want to write a servelt get this file from location given above and give user Save As dialog box.
    can anybody provice me sample code from this....
    thank you.

    Hi,
    Hope the following code snippet helps, Put this in your doGet/doPost method.
    FileInputStream fileInputStream = null;
    ServletOutputStream out = response.getOutputStream();
    String srcfile = "c:\bea\wlserver6.1\myxsl.xsl";
    String destfile = "myxsl.xsl";
    response.setContentType("text/xml");
    response.setHeader("Content-Disposition","attachment; destfile=\""+ filename + "\"");
    try {
         fileInputStream =new FileInputStream(srcfile);
         int i;
         while ((i=fileInputStream.read()) != -1) {
              out.write(i);
    }catch (Exception e){
         System.err.println (e);
    }finally{     
         fileInputStream.close();
         out.close();     
    Good Luck,
    Rajesh

  • How to force SAVE/OPEN dialog box to appear in IE? (save output locally)

    Hi all!
    I currently have various reports in Excel format outputted in cache via the iAS browser.
    Is there a way to programatically force a SAVE/OPEN BOX to appear in IE whenever my output is spreadsheet/excel? The prompt box appears on Firefox and Opera but not in IE, i take it that IE has already been 'configured' to open excel spreadsheet automatically in the browser.
    Another spin to the question is: How do end users save the Reports output directly to their local machine; instead of having it opened in the browser or saving it in the midtier server

    I found a backdoor solution to this:
    at the URL link, i added &mimetype=application, this will force IE to show the save dialog box because it does not know what the application type is.

  • How to enforce save/open dialog on fileDownload

    Dear All,
    in my adf bc app., an item is set to be displayed as fileDownload of OrdDocDomain to show a download link to the file stored in a orddoc column in a table. for doc file type, browser will prompt the dialog to ask to save or open, while for pdf or txt file, it just opens
    the file in the new browser tab. i know it depends on the behavior of browsers, my wonder is, is there a workaround to enforce the dialog(save/open) to all types of files? thanks.
    regards
    Jerry

    Hi...
    Usually in J2ee if you have a handle to response object...
    You can add a header called Content-Disposition as attachment...
    response.addHeader("Content-Disposition", "attachement; filename=\"" + fileName + "\"")
    By default Content-Disposition header will be "inline"..ie why the files are getting displayed in the page itself ( Given the format is supported by browser).
    If you set it as attachment then the file download popup will come..
    Hope you will be able to use this...
    Thanks..
    Abhilash

  • Infopath submit - how to hide - Save as dialog box - You can only save this file to the current site

    HI,
    I have a infopath form. In the submit options, i have used the below:
    submit options -
    sharepoint document library
    Data connection - Sharepoint Library Submit
    Doc library - lib location
    File name: concat("User Info - ", ResourceName, "-", PersonalID)
    Allow overwrite if file exists is checked.
    When I try to save a record, I am getting a popup:
    Save As:
    You can only save this file to the current site
    File Name: textbox
    save location: doc lib.
    save, cancel buttons.
    How to override this save as option(save as option should not be shown to user), and save the file using the file name mentioned?
    Thanks

    Are you clicking "Save" when you're using the form or "Submit"??
    You should be using "Submit" and it will ... submit your form to the document library with the file name you specified.
    To disable the "Save" button, click on "File" then "Form Options". Under the "Filler Features" area you can uncheck the box beside "Save and Save As". Click OK then re-publish your form.

  • How to call MFC Dll Dialog

    Hi,
    I have created a MFC regular dialog as a dll(TestDialog). And exposed the entire class. Did not expose any specific member function.
    Then i created one more MFC dialog based exe and trying to call my dll.
    I did the below settings:
    Input: TestDialog.lib
    Include : header file
    Now i am calling as
    CTestDialog dlg;
    m_pMainWnd = &dlg;
    dlg.DoModal().
    I am not getting any dialog.
    Can anyone please help me on this.
    Thanks

    sorry it maybe because of zip file. 
    i will write a step.
    just simple. 
    i use win32 dll with mfc support with exported some symbol. name DialogInDll
    create dialog and create class for it. TestDlg
    you will see like this  DialogInDll
    // This class is exported from the DialogInDll.dll
    class DIALOGINDLL_API CDialogInDll {
    public:
    CDialogInDll(void);
    ~CDialogInDll();
    // TODO: add your methods here.
    void showdlg(); // function for the show dialog.
    extern DIALOGINDLL_API int nDialogInDll;
    DIALOGINDLL_API int fnDialogInDll(void);
    //--------------TestDlg .h----------------------------------
    #pragma once
    #include "resource.h"
    // TestDlg dialog
    class TestDlg : public CDialogEx
    DECLARE_DYNAMIC(TestDlg)
    public:
    TestDlg(CWnd* pParent = NULL); // standard constructor
    virtual ~TestDlg();
    // Dialog Data
    enum { IDD = IDD_TESTDLG };
    protected:
    virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
    DECLARE_MESSAGE_MAP()
    //-----------------------------DialogInDll.cpp-------------------------------
    // add this code
    void CDialogInDll::showdlg ()
    AFX_MANAGE_STATE(AfxGetStaticModuleState( )); // this is very important
    TestDlg dlg;
    dlg.DoModal();
    CDialogInDll::CDialogInDll(void)
    CDialogInDll::~CDialogInDll()
    ///compile.....
    //===================================
    // from exe make function.
    // include DialogInDll.h/ copy lib file to source folder / add DialogInDll.lib to linker in project property.
    void test ()
    CDialogInDll cd;
    cd.showdlg ();
    cd.la.name = "Test";
    CString str(CString(cd.la.name.c_str()));
    AfxMessageBox (str);

  • Anyone know how to call a Labview dialog without the splash sceen popping up?

    Has anyone had success with the workarounds for the problems with the Labview splash screen and not being able to click on the Labview dialog? I've attached a simple sequence file to demonstrate the problem. If I use the "make modal" vi's, that seems to solve the mouse click problems, with the annoying side effect of the front panel popping up. I haven't found a solution for the splash screen yet. See the links below for background on these problems.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000057450000&UCATEGORY_0=_8_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=splash+teststand+click&USEA
    RCHCONTEXT_QUESTION_S=0
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000024420000&UCATEGORY_0=_8_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=splash+teststand+click&USEARCHCONTEXT_QUESTION_S=0
    Attachments:
    TestModalDialog.seq ‏10 KB
    ShowModalDialog.vi ‏37 KB
    ShowDialog.vi ‏24 KB

    Hi Mark,
    I've tried your examples and it looks like the only solution would be to junk the labview dialog functions (for the time being) and create your own dialog vi. If you make it connector compatible with the labview functions then you can easily replace it when NI have fix the problem.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How do I call browser Save As dialog box before downloading pdf files?

    How do I call browser Save As dialog box before downloading pdf files?
    Here's my favorite scenario:
    1. User clicks button
    2. Save As dialog displays
    3. User chooses location
    4. A set of PDF files download to that location OR a single zip file downloads
    Background:
    I want to ensure the user sees that files are being downloaded. I'm delivering content to users who may not be Web savvy.
    Concern:
    1. User has no clue how to find downloaded files or that files have even downloaded.
    2. I'd like to deliver the set as zip files. Not sure if self-opening zip files still exist.
    FYI:
    I'm using jQuery UI buttons. Not sure if that factors into response.

    Just for clarity, I'm not forcing a download. The user will click a button.
    Click a button or click a link, either way you're technically executing a script to force a download.
    I'm assuming that's the php file resident on the server.
    Yes but that's only part of it.  Once the contact form executes, another script is called up which opens the browser's download dialogue.
    Is there a php script for simply calling the Open/Save dialog box?
    Yes. 
    <?php
    /* This short script forces a file download.
       For simplicity, it's intended to be used for a single file.
       You can use multiple copies of this file (with unique names)
       with different variable values to use it with multiple files.
       Use of this script has a side-effect of hiding the location of the
       file on your server.
    // full server path to file to be downloaded (including filename)
    $Path2File = "path/to-file-on-server.zip";
    // the filename
    $theFileName = "name-of-file.zip";
    //the work gets done here
    header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header ("Content-Type: application/octet-stream");
    header ("Content-Length: " . filesize($Path2File));
    header ("Content-Disposition: attachment; filename=$theFileName");
    readfile($Path2File);
    ?>
    Name this file zip2download.php.
    Add a link to your HTML page:
    <a href="zip2download.php">Download Zip</a>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

Maybe you are looking for

  • Popup: 'billing is not supported on this version of android market'

    Highly annoying, reason for the popup is unknown. Reappears in some interval. We just got our Razr/M phones and this is our 1st contact with Android system. Does someone know how to switch this off?

  • Blueprint for trading company

    hi guru's i got blue print for pharmaceutical company, can i use same blueprint for trading company? in company how blue print is done? can we edit same blueprint? or we need to write this blueprint newly? max compensation!!!!!!!!! Edited by: dev on

  • Starting a java program from a button

    Hi, How can i start another java application (which is saparated from the orginal application) by pressing a button in the main application? what should the action be? tia,

  • Can I use iMovie to commercial videos on youtube?

    Hello! I have a question, Can I use iMovie to commercial videos on youtube? Yours!

  • Request for tunning the SQL query

    Hi, I've a query mentioned below.I've tried it in different ways.But still it is taking much time. And there are some 9 indexes created on the column siteid. And both the table having indexes.But still full table scanning occuring for both the tables