Filechooser question

Hi, Using my program you save a png screenshot of the GUI screen to file, this all works fine. My question is, using the JFilechooser is it possible to locate the png file and print it.
Thanks

Please don't post the same question twice, or crosspost the same question in mult forums. Choose the one best forum for the question and stick with it.
<a href="http://forum.java.sun.com/thread.jspa?threadID=5181920&messageID=9709057#9709057"></a>
<a href="http://forum.java.sun.com/thread.jspa?threadID=5181899&messageID=9709022#9709022"></a>
Message was edited by:
petes1234

Similar Messages

  • A few FileChooser Questions:

    I set up a filechooser:
    JFileChooser chooser = new JFileChooser();
    chooser.setCurrentDirectory(new File("."));
    int returnVal = chooser.showOpenDialog(this);
    if(returnVal == JFileChooser.APPROVE_OPTION)
      data.filename = chooser.getSelectedFile().getName();And it works, but a few problems:
    1. The filename that is returned doesn't include the file type extension, which I need it to do...
    2. The FileChooser frame looks a little bland. None of those images that I see in the Core Book are being displayed for folders, disks, etc. Do I have to actually get those images somewhere and manually put them in?
    3. I'm setting the directory to "."...yet it doesn't show any files up front. I always have to click the "update" button, at which point, it shows all the files that are in that folder, why is that?

    <COUGH> <bump> <COUGH>...man..I must be coming down with something!

  • Displaying the path of the file selected by a FileChooser in a TextField

    I'm just getting started with Swing. I developed a simple dialog box that has two text fields and two buttons. The objective is to open two files using those two buttons. I used FileChooser to select the files. Now, I want to display the path of the selected files in their corresponding TextFields. I use the following code to do that.
    final FileChooser fc1 = new FileChooser();
    final FileChooser fc2 = new FileChooser();
    final TextField tf1 = new TextField();
    final TextField tf2 = new TextField();
    private void button1ActionPerformed(ActionEvent evt)
                int returnVal1 = fc1.showOpenDialog(labelPhpFile);
                if (returnVal1 == JFileChooser.APPROVE_OPTION)
                    File file1 = fc1.getSelectedFile();
                    String fileName1 = file1.getName();               
                    String filePath1 = file1.getPath();
                    tf1.setText(filePath1);
    private void button2ActionPerformed(ActionEvent evt)
                int returnVal2 = fc2.showOpenDialog(labelPhpFile);
                if (returnVal2 == JFileChooser.APPROVE_OPTION)
                    File file2 = fc2.getSelectedFile();
                    String fileName2 = file2.getName();               
                    String filePath2 = file2.getPath();
                    tf2.setText(filePath2);
    }The above code works fine only for the first file. Mean the path of the file selected using fc1 is getting displayed in the tf1 TextField. But, the file selected using fc2 is not getting displayed tf2 TextField. Please help me.
    Thank you :)

    h1. The Ubiquitous Newbie Tips
    * DON'T SHOUT!!!
    * Homework dumps will be flamed mercilessly.
    * Have a quick scan through the [Forum FAQ's|http://wikis.sun.com/display/SunForums/Forums.sun.com+FAQ].
    h5. Ask a good question
    * Don't forget to actually ask a question. No, The subject line doesn't count.
    * Ask once
        - Don't Crosspost!
        - Two people answering one question independantly is a waste of there time.
    * Don't even talk to me until you've:
        (a) [googled it|http://www.google.com.au/] and
        (b) looked it up in [Sun's Java Tutorials|http://java.sun.com/docs/books/tutorial/] and
        (c) read the relevant section of the [API Docs|http://java.sun.com/javase/6/docs/api/index-files/index-1.html] and maybe even
        (d) referred to the JLS (for "advanced" questions).
    * [Good questions|http://www.catb.org/~esr/faqs/smart-questions.html#intro] get better Answers. It's a fact. Trust me on this one.
        - Lots of regulars on these forums simply don't read badly written questions. It's just too frustrating.
          - FFS spare us the SMS and L33t speak! Pull your pants up, and get a hair cut!
        - Often you discover your own mistake whilst forming a "Good question".
        - Many of the regulars on these forums will bend over backwards to help with a "Good question",
          especially to a nuggetty problem, because they're interested in the answer.
    * Improve your chances of getting laid tonight by writing an SSCCE
        - For you normal people, That's a: Short Self-Contained Compilable Example.
        - Short is sweet: No-one wants to wade through 5000 lines to find your syntax errors!
        - Often you discover your own mistake whilst writing an SSCCE.
        - Solving your own problem yields a sense of accomplishment ;-)
    h5. Formatting Matters
    * Post your code between a pair of &#123;code} tags
        - That is: &#123;code} ... your code goes here ... &#123;code}
        - This makes your code easier to read by preserving whitespace and highlighting java syntax.
        - Copy&paste your source code directly from your editor. The forum editor basically sucks.
        - The forums tabwidth is 8, as per [the java coding conventions|http://java.sun.com/docs/codeconv/].
          - Indents will go jagged if your tabwidth!=8 and you've mixed tabs and spaces.
          - Lines longer than 80 characters should be wrapped.
          - Proper indentation illustrates program logic.
    * Post your error messages between a pair of &#123;code} tags:
        - That is: &#123;code} ... errors here ... &#123;code}
        - To make it easier for us to find, Mark the erroneous line(s) in your source-code. For example:
            System.out.println("Your momma!); // <<<< ERROR 1
        - Note that error messages are rendered basically useless if the code has been
          modified AT ALL since the error message was produced.
        - Here's [How to read a stacktrace|http://www.0xcafefeed.com/2004/06/of-thread-dumps-and-stack-traces/].
    * The forum editor has a "Preview" pane. Use it.
        - If you're new around here you'll probably find the "Rich Text" view is easier to use.
        - WARNING: Swapping from "Plain Text" view to "Rich Text" scrambles the markup!
        - To see how a posted "special effect" is done, click reply then click the quote button.
    If you (the newbie) have covered these bases *you deserve, and can therefore expect, GOOD answers!*
    h1. The pledge!
    We the New To Java regulars do hereby pledge to refrain from flaming anybody, no matter how gumbyish the question, if the OP has demonstrably tried to cover these bases. The rest are fair game.

  • Questions on events in a multi-class GUI

    I have a GUI application that is constructed as follows:
    1. Main Class - Actually creates the JFrame, contains main method, etc.
    2. MenuBar Class - Constructor creates a new JMenuBar structure and populates it with various JMenus and JMenuItems. A new instance of this class is instantiated in the Main Class to be used in the setMenuBar() method.
    3. ContentPane Class - Constructor creates a vertical JSplitPane. A new instance of this class is instantiated in the Main Class to be used in the setContentPane() method.
    4. BottomPane Class - Constructor creates a JPanel and populates it with various stuff. A new instance of this class is instantiated in the Content Pane Class to be used as the bottom pane in the vertical JSplitPane.
    5. TopPane Class - Constructor creates a horizontal JSplitPane and populates the left pane with a JScrollPane containing a JList. A new instance of this class is instantiated in the Content Pane Class to be used as the top pane in the vertical JSplitPane.
    6. TabbedPane Class - Constructor creates a JTabbedPane. A new instance of this class is instantiated in the Top Pane Class to be used as the right pane in the horizontal JSplitPane.
    7. DisplayPane Class - Constructor creates a JPanel. A new instance of this class is instantiated in the Tabbed Pane Class as the first tab. The user has the ability to click at points in this pane and a dialog box will pop up prompting the user for a string. Once the user enters something and clicks "OK", an instance of a custom Java2D component that I've created will be added to the DisplayPane where the user had clicked, with the string the user inputted being used as its name. The user can then drag the component around, enter a key combination to display all the names, etc.
    8. Custom Java2D Component Class - Constructor creates my custom Java2D component. Instances of this are added to the Display Pane Class, as I have described.
    Now, originally, I was going to ask "How do you work with events between these multiple classes?" but I have solved half of that problem myself with the following class:
    9. Listener Class - A new instance of this class is declared in the constructor of the Main Class, and is thus passed down through the GUI hierachy via the constructors of the various classes. I then use the addActionListener() method on various components in the other classes, and then the Listener Class can capture an event using the getActionCommand() method to figure out what fired the event.
    So that covers the "How do I capture events in multiple classes?" question. Now I'm left with "How do I affect changes on those classes based on events?"
    For example: In my MenuBar class, I have a "Save" menu item. When this is clicked, I want to declare a new JFileChooser and then use the showSaveDialog() method, which throws up a dialog for saving a file. The problem is, the showSaveDialog() method takes a Component which is the parent frame. Obviously the Listener Class is not a frame. I want to use the Main Class as the parent frame. How would I do this sort of thing?
    Another example: In my MenuBar class, I have a "New" menu item. For now, I want this to invoke a method in the DisplayPane Class that erases all of my custom Java2D components that have been made, thus giving the user a clean slate. How would I give my Listener Class access to that method?
    A final example: Every time the user adds one of my custom Java2D components, I want that component's name to be added to the JList that is in my TopPane class. Vice versa with deleting a component: its name should be removed from the JList. How would I listen for new components being added? (A change listener on the pane? One on the ArrayList<> that contains all of the components? Something else?) And, of course, how would I give the Listener Class the ability to change the contents of the JList?
    One idea I've come up with so far is to instantiate a new instance of each of my GUI classes in the Listener class, but that doesn't really make much sense. Wouldn't those be new instances that are totally separate from the instances the rest of my program is using? Another thought is to make the Listener Class an internal class inside the Main Class so that it can use the accessor methods of the GUI classes, but a.) I would like to avoid stuffing everything in one class and b.) this brings up the question of "How would I get an accessor method that is in a class that is two or three deep in the hierarchy?" (.getSomething().getSomethingInsideThat().getSomethingInsideTheInsideThing()?)
    Help with answering any or all of my questions would be much appreciated.

    Hrm. At the moment, for my first attempt, I'm doing something similar, it just strikes me as quite unwieldy.
    Start of Listener class, with method for setting what it listens to. (I can't use a constructor for this because the MenuBar and the ContentPane take an instance of
    this Listener class in through their constructors. You can't pass the Listener in through their constructors while simultaneously passing them in through this
    Listener's constructor. That would be an endless cycle of failure. So I just instantiate an instance of this Listener class, then pass it in through the MenuBar and
    ContentPane constructors when I instantiate instances of them, and then call this setListensTo() method.)
    public class Listener implements ActionListener
      private MenuBar menuBar;
      private ContentPane contentPane;
      public void setListensTo(MenuBar menuBar, ContentPane contentPane)
        this.menuBar = menuBar;
        this.contentPane = contentPane;
      }The part of my actionPerformed() method that does some rudimentary saving, which I will make more complicated later:
    else if (evt.getActionCommand() == "saveMenuItem")
      JFileChooser fileChooser = new JFileChooser();
      int returnVal = fileChooser.showSaveDialog(menuBar.getTopLevelAncestor());
      if (returnVal == JFileChooser.APPROVE_OPTION)
        File file = fileChooser.getSelectedFile();
        ArrayList<Node> nodes = contentPaneClass.getTopPaneClass().getTabbedPane().getDisplayPane().getNodes();
        try
          BufferedWriter out = new BufferedWriter(new FileWriter(file));
          for (int i = 0; i < nodes.size(); i++)
            Node node = nodes.get(i);
            out.write(node.getIndex() + "," + node.getXPos() + "," + node.getYPos() + "," + node.getName());
            out.newLine();
          out.close();
        catch (IOException e)
          //To be added                    
    }That part that seems unwieldy is the
    ArrayList<Node> nodes = contentPaneClass.getTopPaneClass().getTabbedPane().getDisplayPane().getNodes();The reason I'm using a separate Listener class is because if I put, say, the actions for the MenuBar in the MenuBar class, and then want to save stuff in the JPanel
    at the bottom of the hierachy, I would have to go up from the MenuBar into the JFrame, and then back down the hierachy to the JPanel, and vice versa. Kind of like
    walking up a hill and then down the other side. I imagine this would be even more unwieldy than what I'm doing now.
    On the plus side, I am making progress, so thanks all for the help so far!

  • Who can answer these simple questions?

    Please be patient to read the following simple code. The numbers at the beginning of each line are line number. It is part of a code to read record into a file.
    // Fig. 17.4: BankAccountRecord.java
    1 public class BankAccountRecord implements Serializable {
    2 private int account;
    3 private String firstName;
    4 private String lastName;
    5 private double balance;
    public BankAccountRecord()
    6 this( 0, "", "", 0.0 );
    public BankAccountRecord( int acct, String first,
    String last, double bal )
    7 setAccount( acct );
    8 setFirstName( first );
    9 setLastName( last );
    10 setBalance( bal );
    public void setAccount( int acct )
    11 account = acct;
    public void setFirstName( String first )
    12 firstName = first;
    public void setLastName( String last )
    13 lastName = last;
    public void setBalance( double bal )
    14 balance = bal;
    import BankAccountRecord;
    public class CreateSequentialFile extends JFrame {
    private ObjectOutputStream output;
    15 File fileName = fileChooser.getSelectedFile();
    16 output = new ObjectOutputStream(
    new FileOutputStream( fileName ) );
    public void addRecord()
    17 int accountNumber = 0;
    18 BankAccountRecord record;
    19 String fieldValues[] = new String(4);
    20 record = new BankAccountRecord(
    accountNumber, fieldValues[ 1 ],
    fieldValues[ 2 ],
    fieldValues[ 3 ] );
    21 output.writeObject( record );
    22 output.flush();
    My questions are:
    1. BankAccountRecord is a class. After line 18 is excecuted,
    record is an object of BankAccountRecord, right?
    2. Line 20 initialize record, right?
    3. After line 21 is excecuted, what is written to the file?
    It should the record(account, firstName, lastName, balance),
    right? But since BankAccountRecord is a class and record is an object of BankAccountRecord, how about the methods
    of the class BankAccountRecord, for example setAccount( ),
    setFirstName(), setLastName(), setBalance(), are these
    methods also written into the file? I think not. But why?

    1) After line 18, record is a reference to a BankAccountRecord with an undefined value. That is, it may be null, it may hold garbage, but you can't use it. Local variables are not initialized. Members are initialized to (0, 0.0, false, null) as appropriate for type, as are array elements.
    2) Line 20 assigns record to refer to a newly created BankAccountRecord object.
    3) Methods are not written out on serialization, only the state of the object--i.e. it's member variables. The method definitions are stored in the .class file that was created when you compiled the class. (If you really wanted to you could override the method (writeObject, I think) and write out whatever you wanted, but there's not need to serialize the method definitions, since they're part of the class.)

  • How to get the full path instead of just the file name, in �FileChooser� ?

    In the FileChooserDemo example :
    In the statement : log.append("Saving: " + file.getName() + "." + newline);
    �file.getName()� returns the �file name�.
    My question is : How to get the full path instead of just the file name,
    e.g. C:/xdirectory/ydirectory/abc.gif instead of just abc.gif
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileChooserDemo extends JFrame {
    static private final String newline = "\n";
    public FileChooserDemo() {
    super("FileChooserDemo");
    //Create the log first, because the action listeners
    //need to refer to it.
    final JTextArea log = new JTextArea(5,20);
    log.setMargin(new Insets(5,5,5,5));
    log.setEditable(false);
    JScrollPane logScrollPane = new JScrollPane(log);
    //Create a file chooser
    final JFileChooser fc = new JFileChooser();
    //Create the open button
    ImageIcon openIcon = new ImageIcon("images/open.gif");
    JButton openButton = new JButton("Open a File...", openIcon);
    openButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showOpenDialog(FileChooserDemo.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    //this is where a real application would open the file.
    log.append("Opening: " + file.getName() + "." + newline);
    } else {
    log.append("Open command cancelled by user." + newline);
    //Create the save button
    ImageIcon saveIcon = new ImageIcon("images/save.gif");
    JButton saveButton = new JButton("Save a File...", saveIcon);
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showSaveDialog(FileChooserDemo.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    //this is where a real application would save the file.
    log.append("Saving: " + file.getName() + "." + newline);
    } else {
    log.append("Save command cancelled by user." + newline);
    //For layout purposes, put the buttons in a separate panel
    JPanel buttonPanel = new JPanel();
    buttonPanel.add(openButton);
    buttonPanel.add(saveButton);
    //Explicitly set the focus sequence.
    openButton.setNextFocusableComponent(saveButton);
    saveButton.setNextFocusableComponent(openButton);
    //Add the buttons and the log to the frame
    Container contentPane = getContentPane();
    contentPane.add(buttonPanel, BorderLayout.NORTH);
    contentPane.add(logScrollPane, BorderLayout.CENTER);
    public static void main(String[] args) {
    JFrame frame = new FileChooserDemo();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

    simply use file.getPath()
    That should do it!Thank you !
    It takes care of the problem !!

  • Pass information to a FileChooser

    Any FileChooser experts out there? I have another question. I did a little searching, but not even sure how to search for this answer.
    I have a FileFilter that makes some files visible and others not based on the extension. I would like to make this more customizable. Such as read a list from an ini file and pass it to the FileFilter when it's called. Is this possible? How would I do that? If I read exe, com, and bat from an ini file and stuck them in an array, could I pass that array to the Filter?
    I call my filter with:
    fc.setFileFilter(new RunAppFileFilter());
    My filter looks like:public class RunAppFileFilter extends
    javax.swing.filechooser.FileFilter
      public boolean accept(File f)
        //if it is a directory -- we want to show it so return true.
        if (f.isDirectory())
          return true;
        //get the extension of the file
        String extension = getExtension(f);
        //check to see if the extension is equal to "exe" or "com" or "bat" and don't display it
        if ((extension.equals("exe")) || (extension.equals("com")) || (extension.equals("bat")))
           return false;
        else
             return true;
      public String getDescription()
          return "Data Files";
      private String getExtension(File f)
        String s = f.getName();
        int i = s.lastIndexOf('.');
        if (i > 0 &&  i < s.length() - 1)
          return s.substring(i+1).toLowerCase();
        return "";
    }As a side note, I'd also like to make the "File Name" field of the FileChooser not editable so the user HAS to select a file and can't type one in.
    Thanks,
    James

    Do just as your and add a constructor or a method that accepts a String[] and sets some instance variable. In your accept method just check extensions against each member of the instance array and return appropriate boolean.
    Cheers
    DB

  • Directory highlighting in filechooser

    I would like to create a filechooser similar to the one in NetBeans where directories with projects are highlighted (or painted with little yellow icon).
    In my case it would be for instance the presence of any jpg files in the directory or some similar criteria.
    Thanks for any help

    You should ask this question over at the Swing section of this forum.

  • Choose a directory with FileChooser (or otherwise) ?

    Hello,
    Is there a way to use the FileChooser (or another JavaFX 2.0) class to be able to select a folder ?
    I did find an issue in Jira, but the fix suggested there crashes the MacOS X beta of JavaFX: http://javafx-jira.kenai.com/browse/RT-15070?focusedCommentId=96034#comment-96034
    Thanks,
    Joachim Haagen Skeie
    Edited by: Joachimhs on Nov 8, 2011 3:10 PM

    Timely question. There isn't one yet, but it is scheduled for 2.1 release early next year. The proposed API:
    void setTitle(String value);
    String getTitle();
    StringProperty titleProperty();
    void setInitialDirectory(File value);
    File getInitialDirectory();
    ObjectProperty<File> initialDirectoryProperty();
    File showDialog(Window ownerWindow);

  • JFileChooser Questions

    Hi,
    I have 2 questions concerning the use of JFileChooser:
    1. When you use "Details" option to see the details of the files; the "Modified" column seems to show the time in "United States" format even if the local regional setting is something else. Is this the default behavior of the JFileChooser or is there something that I can do to change that?
    2. It seems that you cannot just click on the column headers such as "Modified" to have the files sorted by that column like real Window's file chooser... Is that also the default behavior or is there something that I can do to change that?
    Thanks....

    you can read this
    http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html
    to know all the subtilities fo the JFileChooser

  • JFileChooser and JTextArea question

    Hello NG !!!
    I Have to questions about the GUI with Swing:
    1.) JFileChooser: I have a JFrame with my JFileChooser (OpenDialog). How can I realize, that my OpenDialog shows me just the ".txt" files ?
    2.) JTextArea: I want use my JTextArea fro infromation the user about the result. How can I realize, that the JTextArea is deeper or has a frame ?
    Lot of thanks for your help !!!
    schaf77
    PS: Happy new Year !!!!

    1.) JFileChooser: I have a JFrame with my JFileChooser
    (OpenDialog). How can I realize, that my OpenDialog
    shows me just the ".txt" files ?Set a filefiler on your filechooser like this:
    myJFileChooser.setFileFilter(new MyFileFilter() );
    import java.io.File;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class MyFileFilter extends FileFilter {
        // Accept all directories and all txt files.
        public boolean accept(File f) {
            if (f.isDirectory()) {
                return true;
            String extension = getExtension(f);
         if (extension != null) {
                if (extension.equals("txt") ) {
                        return true;
                } else {
                    return false;
            return false;
        private static String getExtension(File f) {
              String ext = null;
             String s = f.getName();
             int i = s.lastIndexOf('.');
             if (i > 0 &&  i < s.length() - 1) {
                   ext = s.substring(i+1).toLowerCase();
             return ext;
        // The description of this filter
        public String getDescription() {
            return "Textfile (*.txt)";
    2.) JTextArea: I want use my JTextArea fro infromation
    the user about the result. How can I realize, that the
    JTextArea is deeper or has a frame ?What do you mean?

  • Please help with how a filechooser works on a webpage

    I must say that I have no idea about Java.
    I am dealing with a webpage that has a "browse" button to add a file. The page seems to initiate java as java appears in my system tray when navigating to the page.
    I have coming to this page through a totally different programming language and need to deal with the windows dialog (filechooser) that appears after clicking the "browse" button.
    The thing is that after clicking the browse button - my code is stopped and only starts again after this dialog is closed.
    So is it possible that the coder of this webpage has got his java (i think applet) so that once the dialog is open that no code can be run on the computer till the dialog is closed.

    Ok thank you for your help. You have saved me a lot of time with my strange question.
    I am sadely back in the darkages as I am using VBA which does not allow me to choose threads.
    To make this question complete I am trying to automate an intranet web page. Of course there is an add file text box TYPE=File which is the cause of the problem. You cannot fill the box with something other than with SendKeys. (which only sometimes works).
    So I wanted to "click" on the browse button and then my code should get a handle on the now open dialog, but my code is paused until the dialog is closed and it appears that java is doing this.
    I assume it must be some security thing, maybe to stop exactly what I am doing. The funny thing is that the dialog is only model for the browser and my code. I can still do everything else with my computer. (I suppose the "everything else" is using another thread like you suggested.

  • FileChooser And ProgressBar

    Dear visitor:
    thanks for caring my problems:)
    well,i don' t know how to show a FileChooser in the specific mode i want:the save mode and open mode,and when i select a file in a file chooser,how could i add
    an action listener on the "save" button or the "open" button to save or open a file when i click the button.
    the following question is how to link the progress bar to a thread.for example,
    i am connecting a database or loading an image,how to use the progress bar to show
    exactly how much work has been done,for example,how many percents of the picture has been loaded
    thanks for your help!
    zhile:)

    hi zhile!
    well, you don't need to put an actionlistener on the save or open button of your filechooser...
    you just use sample code:
    JFileChooser fileChooser = new JFileChooser();
    int returnVal = fileChooser.showOpenDialog(null);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    //in case you select a file
    File file = fileChooser.getSelectedFile();
    else
    //selection a file was cancelled
    or didn't i understand you correctly?
    regards,
    majandrah

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

  • Satellite P300D-10v - Question about warranty

    HI EVERYBODY
    I have these overheating problems with my laptop Satellite P300D-10v.
    I did everything I could do to fix it without any success..
    I get the latest update of the bios from Toshiba. I cleaned my lap with compressed air first and then disassembled it all and cleaned it better.(it was really clean insight though...)
    BUT unfortunately the problem still exists...
    So i made a research on the internet and I found out that most of Toshiba owners have the same exactly problem with their laptop.
    Well i guess this is a Toshiba bug for many years now.
    Its a really nice lap, cool sound (the best in laptop ever) BUT......
    So I wanted to make a question. As i am still under warranty, can i return this laptop and get my money back or change it with a different one????
    If any body knows PLS let me know.
    chears
    Thanks in advance

    Hi
    I have already found you other threads.
    Regarding the warranty question;
    If there is something wrong with the hardware then the ASP in your country should be able to help you.
    The warranty should cover every reparation or replacement.
    But I read that you have disasembled the laptop at your own hand... hmmm if you have disasembled the notebook then your warrany is not valid anymore :(
    I think this should be clear for you that you can lose the warrany if you disasemble the laptop!
    By the way: you have to speak with the notebook dealer where you have purchased this notebook if you want to return the notebook
    The Toshiba ASP can repair and fix the notebook but you will not get money from ASP.
    Greets

Maybe you are looking for