Re: FileSaveDialog

Hi Bryan,
I just tried your code (replacing YourFolder[1].Title with some simple
text
and taking out the YourFolder.Clear) and it worked fine for me on
Windows NT
V4.0. The behavior is a little strange... that is, you write to the
file,
then ask you want to save it afterwards, but I assume this is just an
example.
I suggest that you report this to Forte support.
Cheers,
Kerry
Does anyone know how to use the FileSaveDialog? This is the code that I
have, and I am running into an error that I don't understand:
ret : integer;
theFile : File = new();
theFile.SetLocalName('YourFolder.dat');
theFile.Open(SP_AM_APPEND);
theFile.WriteText(YourFolder[1].Title);
theFile.Close();
ret = self.Window.FileSaveDialog('Save your file', '*.dat', theFile, theFile);
if ret = BV_OK then
self.window.messagedialog('Your folder has been downloaded successfully.');
YourFolder.Clear();
end if;
The error says : Windows Common Dialog failed with error code 0x3002.
If anyone has any suggestions or help, I would appreciate it. Thanks.

subhanzeeshan wrote:
Re:Reminder Pop-Ups for Recovery
Um, huh?
This section is not a "personal reminder" area... If you have a question, please post it in a form we can understand!
WyreNut
I am a Volunteer here, not employed by HP.
You too can become an HP Expert! Details HERE!
If my post has helped you, click the Kudos Thumbs up!
If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

Similar Messages

  • FileSaveDialog

    Does anyone know how to use the FileSaveDialog? This is the code that I
    have, and I am running into an error that I don't understand:
    ret : integer;
    theFile : File = new();
    theFile.SetLocalName('YourFolder.dat');
    theFile.Open(SP_AM_APPEND);
    theFile.WriteText(YourFolder[1].Title);
    theFile.Close();
    ret = self.Window.FileSaveDialog('Save your file', '*.dat', theFile, theFile);
    if ret = BV_OK then
    self.window.messagedialog('Your folder has been downloaded successfully.');
    YourFolder.Clear();
    end if;
    The error says : Windows Common Dialog failed with error code 0x3002.
    If anyone has any suggestions or help, I would appreciate it. Thanks.

    Hello Mathias,
    wasn't your Question answered there: /thread/84965 [original link is broken]?
    Regards
    Gregor

  • Transactional Iviews - Error

    Hi All,
    I have created a transactional iViews and attached it in the protal. This iView Displays a report with Save Button on it. Now this Report works perfectly fine when I try to execute it at the backend. But When we try to execute it through transactional iViews i.e when I press the save button of the report to download it in pdf format, I am getting an error message "Applet filesavedialog.class notinited."
    Ideally it should pop-up a window asking for the path of the file to save. Please help me how can i resolve this error ?
    Regards,
    Akhil Rai

    Hi Deepak,
    There is not short dump created at the backend. As I said earlier also Report is working perfectly fine at the backend.
    Error message is coming at the bottom of the explorer as " Applet filesavdialog.class notinited" and the pop-up doesn't come. Everything else works perfrctly fine. Users can still see the report.
    Hey Guys,
    Can someone please help me out of this..
    Regards,
    Akhil

  • Preset upload-directory

    Is there any way to preset the GUI-Directory for FileSaveDialog or FileOpenDialog <b>without</b> dialog?
    Whenever pressing “Open File” in the program the user will get the same directory.

    Hello Mathias,
    wasn't your Question answered there: /thread/84965 [original link is broken]?
    Regards
    Gregor

Maybe you are looking for