Assignment with file input

I'm not one to join boards for the purpose of asking a question, but it's here that I'm stumped, and if anyone could help, I'd really appreciate it. Here's the first part of the task:
"Task-
Imagine that you are an owner of a hardware store and need to keep an
inventory that can tell you what different kind of tools you have how many of
each you have on hand and cost of each one.
Now do the following:
(1) Write a program (Tool.java) that,
(1.1) Initializes (and creates) a file ?hardware.dat?
(1.2) lets you input that data concerning each tool, i.e. the
program must ask the user for input and each of the user
input is written back in the file.
The file must have the following format:
Record# Tool Name Qty Cost per item (A$)
1 Electric Sander 18 35.99
2 Hammer 128 10.00
3 Jigsaw 16 14.25
4 Lawn mower 10 79.50
5 Power saw 8 89.99
6 Screwdriver 236 4.99
7 Sledgehammer 32 19.75
8 Wrench 65 6.48
(1.3) Exception handling that must be taken into account-
(1.3.1) User must not input incorrect data
(1.3.2) Cost of the item must be a number"
My code is below. So, here's my problem.
1. I tried using "isNaN" to check if the value for "quantity" is a number or not, but it produced a "cannot find symbol method" or some such, hence why I used a try and catch thing.
The problem is, the statement in the second try thing only tests it hypothetically; i.e. it tests it, but if it IS a number, it doesn't enter a value at all. If it ISN'T a number, it properly catches the exception.
But if I do the "nextInt" after the try and catch, I'll have to enter a new line. How can I do the catch, but also enters the value if it's true? "isNaN" would be the best method... and I'll separate everything into their own modules soon.
2. I have the tool Name, Quantity, and Price. However, I'm unsure how to add the record number. The program can be run at any time to add a record once at a time, so the record number needs to reflect what you're adding.
3. In the second part, "ToolDetails" reads and displays the contents of the "hardware.dat" file which the records are written to, and it also displays the total cost of all items, i.e. "Total toolName[1] cost: toolQuantity[1]*toolPrice[1]".
4. Also in the second class "ToolDetails", there needs to be a way to select a specific record by the toolName and delete all details pertaining to it, for example, you choose "Wrench", then the program deletes the record number, quantity, and price of "Wrench".
I apologise for my choppy code, it's what I've pieced together while testing out things. Can anyone please help me or provide guidance on where to research these things? Thanks a lot.
import java.io.*;
import java.util.Scanner;
import java.lang.Exception;
public class Tool
     public static void main(String[] args)
          PrintWriter outputStream = null;
          try
               outputStream = new PrintWriter(new FileOutputStream("hardware.dat", true));
          catch(FileNotFoundException error)          // The above may throw an error.
          {                                             // Hence, the exception catching.
               System.out.println("File hardware.dat not found.");
               System.exit(0);
          Scanner toolInput = new Scanner(System.in);
          System.out.println("Enter tool name:");
          String toolName = toolInput.nextLine();          
          System.out.println("Enter quantity:");          
          String test = toolInput.nextInt().toString;
          try
               int toolQuantity = toolInput.nextInt();
          catch(java.util.InputMismatchException ime)
               System.out.println("Not a number.");
               System.exit(0);
          int toolQuantity = toolInput.nextInt();
          System.out.println("Enter price of item:");
          double toolPrice = toolInput.nextDouble();
          outputStream.println(toolName + "   " + toolQuantity + "   " + toolPrice);
          outputStream.close();
          System.out.println("\nThank you, new item \"" + toolName + "\" entered.");
}

Hi,
A couple of things:
- don't put everything in the main method; you end up duplicating code and one huge method is hard to follow. Use separate methods instead.
- when using Scanners nextInt() or nextDouble() method, it will leave the lineseparator in place which will then "clutter up" the Scanner.
For example if the user enteres "123" and hits the return button, the String will really look like this: "123\r\n" (depending on the OS). If you now call nextInt(), the number 123 will be returned and the "\r\n" will still be in the Scanner and when the user enters another number, say 6.6 and hits return, the Scanner will then look like this: "\r\n6.6\r\n". Calling Scanners nextDouble() method will now be the cause of an exception being thrown.
You still with me?
So, I advise you to just read a complete line from the user with Scanners nextLine() method, and try to convert that line into a number and catch a possible NumberFormatException.
Here's a little start. I already wrote one method for you (getIntFromUser(...)), try to finish it now:
import java.io.*;
import java.util.Scanner;
// import java.lang.Exception; <-- java.lang.* classes are automatically imported
public class Tool {
    static final Scanner toolInput = new Scanner(System.in);
    static final String fileName = "hardware.dat";
    public static void main(String[] args) {
        String toolName = getStringFromUser("Enter tool name:");  
        int quantity = getIntFromUser("Enter quantity:");       
        double price = getDoubleFromUser("Enter price of item:");
        System.out.println("You entered: '"+toolName+"', '"+quantity+"' and '"+price+"'.");
    public static int getIntFromUser(String prompt) {
        while(true) {
            System.out.print("\n"+prompt+" ");
            String line = toolInput.nextLine();
            try {
                int number = Integer.parseInt(line);
                return number;
            } catch(NumberFormatException e) {
                System.out.println("Invalid, try again!");
    public static double getDoubleFromUser(String prompt) {
        // your code here
        return -1.0;
    public static String getStringFromUser(String prompt) {
        // your code here
        return "a tool name";
    public static String readFile() {
        // your code here
        // Have a look at http://javaalmanac.com/egs/java.io/ReadLinesFromFile.html
        // how to read the lines from a textfile.
        return "";
    public static void writeLineToFile(String extraLine) {
        // your code here
        // Note: before writing the 'extraLine' to the file, you should
        // read the current contents from it and write it all to the file
        // Have a look at http://javaalmanac.com/egs/java.io/WriteToFile.html
        // how to write to a textfile.
}Good luck.

Similar Messages

  • Please help with File input!

    This is my first time dealing with file I/O and need help figuring out the best way to read in data and store it for further manipulation. I have a file that contains an individual's salary, and 3 product ratings on each line, such as: 75000 01 05 09
    What is the best way to store this data? I know how to use BufferedReader and how to tokenize each integer. I must write this program to deal with any number of lines in a file. There are three income brackets, and I must also be able to perform the following calculations:
    a) For each income bracket, the average rating for each product
    b) The number of persons in Income Bracket $50000-74000 that rates all three products with a score of 5 or higher.
    c) The average rating for Product 2 by persons who rated Product 1 lower than Prodcut 3.
    Thus far, I've written the following code to open the file and perform 2 reads to get the total number of lines (individuals) and the total number of inidividuals in each income bracket. It compiles, but I get a null pointed exception at StringTokenizer, for some reason.
    Please help! Do I need to take lines in as arrays? (tried this, but don't understand how to get at individual data) Do I need to somehow create objects for each person (if so, how?). My reference text covers this area poorly. Thanks for all help.
    import java.io.*;
    import java.util.*;
    public class Product_Survey
         public static void main(String [] args)
              int lineCount = 0;
              int inc1total = 0;
              int inc2total = 0;
              int inc3total = 0;
              String name = null;
              System.out.println("Please enter income and product info file name:  ");
              Scanner keyboard = new Scanner(System.in);
              name = keyboard.next();
              File fileObject = new File(name);
              while ((! fileObject.exists()) || ( ! fileObject.canRead()))
                   if( ! fileObject.exists())
                        System.out.println("No such file");
                   else
                        System.out.println("That file is not readable.");
                        System.out.println("Enter file name again:");
                        name = keyboard.next();
                        fileObject = new File(name);                    
              try
                   BufferedReader inputStream = new BufferedReader(new FileReader(name));
                   String trash = "No trash yet";
                   while (trash != null)
                        trash = inputStream.readLine();
                        lineCount++;
                   inputStream.close();
              catch(IOException e)
                   System.out.println("Problem reading from file.");
              try
                   BufferedReader inputStream = new BufferedReader(new FileReader(name));
                   String trash = "No trash yet";
                   while (trash != null)
                        trash = inputStream.readLine();
                        StringTokenizer st = new StringTokenizer(trash);
                        int income = Integer.parseInt(st.nextToken());
                        if(income<50000)
                             inc1total++;
                        else if(income<75000)
                             inc2total++;
                        else if(income<100000)
                             inc3total++;
                   inputStream.close();
              catch(IOException e)
                   System.out.println("Problem reading from file.");
    }

    Try adding a print statement to see what is happening in your second read loop:
                while (trash != null)
                    trash = inputStream.readLine();
                    System.out.println("trash = " + trash);
                    StringTokenizer st = new StringTokenizer(trash);Another way to read in a while loop:
                while ((trash = inputStream.readLine()) != null)

  • Problem with File Input and Output

    I'm using a class named Output which takes 2 arrays as input and is simply supposed to output them to a file named myfile.txt. However, every time I call it it catches an exception and just prints out Error Writing to File. Here is the source:
    import java.io.*;
    public class Output
         public Output(int[][] orig, int[][] orig2)
              int[][] first = orig;
              int[][] second = orig2;
              try
                   FileOutputStream out = new FileOutputStream("myfile.txt");
                   PrintStream p = new PrintStream( out );
                   p.print("{");
                   for(int i = 0; i < 50; i++)
                        for(int j = 0; j < 30; j++)
                             p.print(" " + first[i][j]);
                   p.print("}");
                   p.println("\n\n\n");
                   p.print("{");
                   for(int i = 0; i < 50; i++)
                        for(int j = 0; j < 30; j++)
                             p.print(" " + second[i][j]);
                   p.print("}");
                   p.close();
              catch (Exception e)
                   System.err.println ("Error writing to file");
    }

    Equis.Scry wrote:
    So basically is my computer not letting this APPLET create a txt file? For security reasons, applets by default cannot access the local file system (on the client) and cannot open any network connections except back to the server that served them up. You can sign your applet, and set up permissions in the JRE that your browser runs to allow the signed applet to do things that applets normally can't. However, before starting down that path, I suggest you examine whether your applet really needs to access the local file system, and if it does, if it should really be an applet, or would be more appropriate as an application.

  • Re: File Input Streams FileNotFoundException

    Hi,
    I'm having problems with file input streams.
    The program is supposed to read from an external file but when I run it in Sun ONE Studio 4 (update 1), it gives me a FileNotFoundException (The system cannot find the file specified). The file, class.dat, is in the same folder as the .java and .class files.
    Anyway, so I run the program through MS-Prompt commands and there is no problem. It executes fine and gives the right output. Go figure.
    Can anyone shed some light on what is going on? Anyone else with the same problem? Is there something I need to configure in SunStudio? Please help...
    Thanks
    The code is taken directly from Sams Java in 21 days.
    // code
    import java.io.*;
    public class ReadBytes {
    public static void main(String[] arguments) {
    try {
    FileInputStream file = new
    FileInputStream("class.dat");
    boolean eof = false;
    int count = 0;
    while (!eof) {
    int input = file.read();
    System.out.print(input + " ");
    if (input == -1)
    eof = true;
    else
    count++;
    file.close();
    System.out.println("\nBytes read: " + count);
    } catch (IOException e) {
    System.out.println("Error -- " + e.toString());

    FileInputStream file = new FileInputStream("class.dat");Is this the line that is giving you the error message? Always, when trying to open a disk file, give the full path. This is because, FileNotFoundException is thrown only in cases when your file cannot be found by your program. But you say that the file exists.
    Try giving your full path for the file...like:
    FileInputStream file = new FileInputStream("C:/Program Files/class.dat");
    //Ofcourse your path will be different. This is just an example!So try giving the full path and let me know.
    Vijay :-)

  • How to process large input CSV file with File adapter

    Hi,
    could someone recommend me the right BPEL way to process the large input CSV file (4MB or more with at least 5000 rows) with File Adapter?
    My idea is to receive data from file (poll the UX directory for new input file), transform it and then export to one output CSV file (input for other system).
    I developed my process that consists of:
    - File adapter partnerlink for read data
    - Receive activity with checked box to create instance
    - Transform activity
    - Invoke activity for writing to output CSV.
    I tried this with small input file and everything was OK, but now when I try to use the complete input file, the process doesn't start and automatically goes to OFF state in BPEL console.
    Could I use the MaxTransactionSize parameter as in DB adapter, should I batch the input file or other way could help me?
    Any hint from you? I've to solve this problem till this thursday.
    Thanks,
    Milan K.

    This is a known issue. Martin Kleinman has posted several issues on the forum here, with a similar scenario using ESB. This can only be solved by completely tuning the BPEL application itself, and throwing in big hardware.
    Also switching to the latest 10.1.3.3 version of the SOA Suite (assuming you didn't already) will show some improvements.
    HTH,
    Bas

  • Can SQL*PLUS deal with 'flat ASCII files' (input ) in UNIX ? and how?

    Can SQL*PLUS deal with 'flat ASCII files' (input ) in UNIX ? and how?

    No, but PL/SQL can. Look at utl_file.
    John Alexander www.summitsoftwaredesign.com

  • Problems with multi-account assignment in batch-input program

    Hi everybody!
    I'll create purchase orders with multi-account assignment via batch input.
    When processing dynpro SAPMM06E 0113 I get the message:
    "Batch-Input data for dynpro SAPMM06E 0113 are not available".
    But all data are already filled in the accounting fields. 
    There is no way to go back to the position overview.
    Here you can see the batch input coding of the multi-account assingment:
         PERFORM dynpro USING: 'X' 'SAPMM06E'        '0113',
                                ' ' 'BDC_CURSOR'      'EKKN-TWRKZ',
                                ' ' 'BDC_OKCODE'      '/00',
                                ' ' 'EKPO-WEPOS'      'X',
                                ' ' 'EKPO-WEUNB'      'X',
                                ' ' 'EKPO-VRTKZ'      wa_ekko_ekpo-vrtkz,
                                ' ' 'EKPO-TWRKZ'      wa_ekko_ekpo-twrkz.
          PERFORM dynpro USING: ' ' 'BDC_CURSOR'      'EKKN-ANLN1(14)',
                                ' ' 'BDC_OKCODE'      '/00',
                                ' ' 'EKPO-WEPOS'      'X',
                                ' ' 'EKPO-WEUNB'      'X',
                                ' ' 'RM06E-MKNTM(14)'  ekkn_menge2,
                                ' ' 'EKKN-ANLN1(14)'   wa_ekko_ekpo-anln1,
                                ' ' 'EKKN-ABLAD(14)'   wa_ekko_ekpo-ablad,
                                ' ' 'EKKN-WEMPF(14)'   wa_ekko_ekpo-wempf.
                               ' ' 'BDC_SUBSCR'      'SAPLKACB'.
    *(this is repeated for every accounting position)
         PERFORM dynpro USING: ' ' 'BDC_CURSOR'      'EKPO-VRTKZ',
                               ' ' 'BDC_OKCODE'      '=AB',
                               ' ' 'EKPO-WEPOS'      'X',
                               ' ' 'EKPO-WEUNB'      'X'.
    Regards,
    Anke
    Message was edited by:
            Anke Chittka

    Hi,
          1 .First record properly depen upon ur requirment,
          2. Test ur recorded code
          3. Note all OK-Code ( when u press any button) * this is important
          4. After that split ur recorded coding dep ur requirment (if u know all OK-Code u can split the recorded coding)
          5. call ur splided coding in ur prg.
    i am having coding for PO but this is Dep my requirment

  • Bug when dealing with multiple file input elements?

    I'm running Apex 4.2 and have an odd problem.
    Back Story:
    I have created a page on a standard web server (Apache) that allows a user to select multiple images from there local machine. The form reads one file at a time displaying a preview of the image and reading the exif data from the file.  We are entering extra data about each picture into a form.  So the flow of the page is: user selects images -> first image is displayed and user enters data -> submits data via ajax -> user hits button and next image comes up.  The user repeats until all images are done.  I have not done the ajax portion but all other parts work fine on the Apache server.
    The Problem:
    I need to recreate this type of form in Apex.   If I create a multiple file input item on a page all the tabs stop working.  They take you to a 404 page with the message "The requested URL /apex/wwv_flow.accept was not found on this server ".  I have tracked it back to anything calling the apex.submit() javascript function. 
    Literally if I make a html region and place "<input id="uploadInput" type="file" name="myFiles" multiple>"  into the region source the apex.submit() function stops working.
    Any thoughts?

    Epic Fail wrote:
    Literally if I make a html region and place "<input id="uploadInput" type="file" name="myFiles" multiple>"  into the region source the apex.submit() function stops working.
    Any thoughts?
    Not a bug. The file browse control you have created cannot be processed by the APEX wwv_flow.accept procedure that performs page submit processing. Your control's name attribute is myFiles, but there is no corresponding parameter in wwv_flow.accept:
    -- A C C E P T
    -- This procedure accepts virtually every flow page.
    -- Reference show procedure for input argument descriptions.
    procedure accept (
        p_request      in varchar2  default null,
        p_instance      in varchar2  default null,
        p_flow_id      in varchar2  default null,
        p_company      in number    default null,
        p_flow_step_id  in varchar2  default null,
        p_arg_names    in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_arg_values    in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_arg_checksums in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_page_checksum in varchar2                default null,
        p_accept_processing in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v01          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v02          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v03          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v04          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v05          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v06          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v07          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v08          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v09          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v10          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v11          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v12          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v13          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v14          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v15          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v16          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v17          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v18          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v19          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v20          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v21          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v22          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v23          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v24          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v25          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v26          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v27          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v28          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v29          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v30          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v31          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v32          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v33          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v34          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v35          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v36          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v37          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v38          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v39          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v40          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v41          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v42          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v43          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v44          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v45          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v46          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v47          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v48          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v49          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v50          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v51          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v52          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v53          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v54          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v55          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v56          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v57          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v58          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v59          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v60          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v61          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v62          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v63          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v64          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v65          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v66          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v67          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v68          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v69          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v70          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v71          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v72          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v73          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v74          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v75          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v76          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v77          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v78          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v79          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v80          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v81          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v82          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v83          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v84          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v85          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v86          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v87          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v88          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v89          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v90          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v91          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v92          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v93          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v94          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v95          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v96          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v97          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v98          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v99          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v100          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v101          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v102          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v103          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v104          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v105          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v106          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v107          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v108          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v109          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v110          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v111          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v112          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v113          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v114          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v115          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v116          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v117          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v118          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v119          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v120          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v121          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v122          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v123          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v124          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v125          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v126          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v127          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v128          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v129          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v130          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v131          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v132          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v133          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v134          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v135          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v136          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v137          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v138          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v139          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v140          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v141          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v142          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v143          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v144          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v145          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v146          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v147          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v148          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v149          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v150          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v151          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v152          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v153          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v154          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v155          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v156          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v157          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v158          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v159          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v160          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v161          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v162          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v163          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v164          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v165          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v166          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v167          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v168          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v169          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v170          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v171          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v172          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v173          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v174          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v175          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v176          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v177          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v178          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v179          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v180          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v181          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v182          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v183          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v184          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v185          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v186          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v187          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v188          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v189          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v190          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v191          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v192          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v193          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v194          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v195          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v196          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v197          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v198          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v199          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v200          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_t01          in varchar2  default null,
        p_t02          in varchar2  default null,
        p_t03          in varchar2  default null,
        p_t04          in varchar2  default null,
        p_t05          in varchar2  default null,
        p_t06          in varchar2  default null,
        p_t07          in varchar2  default null,
        p_t08          in varchar2  default null,
        p_t09          in varchar2  default null,
        p_t10          in varchar2  default null,
        p_t11          in varchar2  default null,
        p_t12          in varchar2  default null,
        p_t13          in varchar2  default null,
        p_t14          in varchar2  default null,
        p_t15          in varchar2  default null,
        p_t16          in varchar2  default null,
        p_t17          in varchar2  default null,
        p_t18          in varchar2  default null,
        p_t19          in varchar2  default null,
        p_t20          in varchar2  default null,
        p_t21          in varchar2  default null,
        p_t22          in varchar2  default null,
        p_t23          in varchar2  default null,
        p_t24          in varchar2  default null,
        p_t25          in varchar2  default null,
        p_t26          in varchar2  default null,
        p_t27          in varchar2  default null,
        p_t28          in varchar2  default null,
        p_t29          in varchar2  default null,
        p_t30          in varchar2  default null,
        p_t31          in varchar2  default null,
        p_t32          in varchar2  default null,
        p_t33          in varchar2  default null,
        p_t34          in varchar2  default null,
        p_t35          in varchar2  default null,
        p_t36          in varchar2  default null,
        p_t37          in varchar2  default null,
        p_t38          in varchar2  default null,
        p_t39          in varchar2  default null,
        p_t40          in varchar2  default null,
        p_t41          in varchar2  default null,
        p_t42          in varchar2  default null,
        p_t43          in varchar2  default null,
        p_t44          in varchar2  default null,
        p_t45          in varchar2  default null,
        p_t46          in varchar2  default null,
        p_t47          in varchar2  default null,
        p_t48          in varchar2  default null,
        p_t49          in varchar2  default null,
        p_t50          in varchar2  default null,
        p_t51          in varchar2  default null,
        p_t52          in varchar2  default null,
        p_t53          in varchar2  default null,
        p_t54          in varchar2  default null,
        p_t55          in varchar2  default null,
        p_t56          in varchar2  default null,
        p_t57          in varchar2  default null,
        p_t58          in varchar2  default null,
        p_t59          in varchar2  default null,
        p_t60          in varchar2  default null,
        p_t61          in varchar2  default null,
        p_t62          in varchar2  default null,
        p_t63          in varchar2  default null,
        p_t64          in varchar2  default null,
        p_t65          in varchar2  default null,
        p_t66          in varchar2  default null,
        p_t67          in varchar2  default null,
        p_t68          in varchar2  default null,
        p_t69          in varchar2  default null,
        p_t70          in varchar2  default null,
        p_t71          in varchar2  default null,
        p_t72          in varchar2  default null,
        p_t73          in varchar2  default null,
        p_t74          in varchar2  default null,
        p_t75          in varchar2  default null,
        p_t76          in varchar2  default null,
        p_t77          in varchar2  default null,
        p_t78          in varchar2  default null,
        p_t79          in varchar2  default null,
        p_t80          in varchar2  default null,
        p_t81          in varchar2  default null,
        p_t82          in varchar2  default null,
        p_t83          in varchar2  default null,
        p_t84          in varchar2  default null,
        p_t85          in varchar2  default null,
        p_t86          in varchar2  default null,
        p_t87          in varchar2  default null,
        p_t88          in varchar2  default null,
        p_t89          in varchar2  default null,
        p_t90          in varchar2  default null,
        p_t91          in varchar2  default null,
        p_t92          in varchar2  default null,
        p_t93          in varchar2  default null,
        p_t94          in varchar2  default null,
        p_t95          in varchar2  default null,
        p_t96          in varchar2  default null,
        p_t97          in varchar2  default null,
        p_t98          in varchar2  default null,
        p_t99          in varchar2  default null,
        p_t100          in varchar2  default null,
        p_t101          in varchar2  default null,
        p_t102          in varchar2  default null,
        p_t103          in varchar2  default null,
        p_t104          in varchar2  default null,
        p_t105          in varchar2  default null,
        p_t106          in varchar2  default null,
        p_t107          in varchar2  default null,
        p_t108          in varchar2  default null,
        p_t109          in varchar2  default null,
        p_t110          in varchar2  default null,
        p_t111          in varchar2  default null,
        p_t112          in varchar2  default null,
        p_t113          in varchar2  default null,
        p_t114          in varchar2  default null,
        p_t115          in varchar2  default null,
        p_t116          in varchar2  default null,
        p_t117          in varchar2  default null,
        p_t118          in varchar2  default null,
        p_t119          in varchar2  default null,
        p_t120          in varchar2  default null,
        p_t121          in varchar2  default null,
        p_t122          in varchar2  default null,
        p_t123          in varchar2  default null,
        p_t124          in varchar2  default null,
        p_t125          in varchar2  default null,
        p_t126          in varchar2  default null,
        p_t127          in varchar2  default null,
        p_t128          in varchar2  default null,
        p_t129          in varchar2  default null,
        p_t130          in varchar2  default null,
        p_t131          in varchar2  default null,
        p_t132          in varchar2  default null,
        p_t133          in varchar2  default null,
        p_t134          in varchar2  default null,
        p_t135          in varchar2  default null,
        p_t136          in varchar2  default null,
        p_t137          in varchar2  default null,
        p_t138          in varchar2  default null,
        p_t139          in varchar2  default null,
        p_t140          in varchar2  default null,
        p_t141          in varchar2  default null,
        p_t142          in varchar2  default null,
        p_t143          in varchar2  default null,
        p_t144          in varchar2  default null,
        p_t145          in varchar2  default null,
        p_t146          in varchar2  default null,
        p_t147          in varchar2  default null,
        p_t148          in varchar2  default null,
        p_t149          in varchar2  default null,
        p_t150          in varchar2  default null,
        p_t151          in varchar2  default null,
        p_t152          in varchar2  default null,
        p_t153          in varchar2  default null,
        p_t154          in varchar2  default null,
        p_t155          in varchar2  default null,
        p_t156          in varchar2  default null,
        p_t157          in varchar2  default null,
        p_t158          in varchar2  default null,
        p_t159          in varchar2  default null,
        p_t160          in varchar2  default null,
        p_t161          in varchar2  default null,
        p_t162          in varchar2  default null,
        p_t163          in varchar2  default null,
        p_t164          in varchar2  default null,
        p_t165          in varchar2  default null,
        p_t166          in varchar2  default null,
        p_t167          in varchar2  default null,
        p_t168          in varchar2  default null,
        p_t169          in varchar2  default null,
        p_t170          in varchar2  default null,
        p_t171          in varchar2  default null,
        p_t172          in varchar2  default null,
        p_t173          in varchar2  default null,
        p_t174          in varchar2  default null,
        p_t175          in varchar2  default null,
        p_t176          in varchar2  default null,
        p_t177          in varchar2  default null,
        p_t178          in varchar2  default null,
        p_t179          in varchar2  default null,
        p_t180          in varchar2  default null,
        p_t181          in varchar2  default null,
        p_t182          in varchar2  default null,
        p_t183          in varchar2  default null,
        p_t184          in varchar2  default null,
        p_t185          in varchar2  default null,
        p_t186          in varchar2  default null,
        p_t187          in varchar2  default null,
        p_t188          in varchar2  default null,
        p_t189          in varchar2  default null,
        p_t190          in varchar2  default null,
        p_t191          in varchar2  default null,
        p_t192          in varchar2  default null,
        p_t193          in varchar2  default null,
        p_t194          in varchar2  default null,
        p_t195          in varchar2  default null,
        p_t196          in varchar2  default null,
        p_t197          in varchar2  default null,
        p_t198          in varchar2  default null,
        p_t199          in varchar2  default null,
        p_t200          in varchar2  default null,
        f01            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f02            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f03            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f04            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f05            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f06            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f07            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f08            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f09            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f10            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f11            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f12            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f13            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f14            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f15            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f16            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f17            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f18            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f19            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f20            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f21            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f22            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f23            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f24            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f25            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f26            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f27            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f28            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f29            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f30            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f31            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f32            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f33            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f34            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f35            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f36            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f37            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f38            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f39            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f40            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f41            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f42            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f43            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f44            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f45            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f46            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f47            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f48            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f49            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f50            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fcs            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fmap            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fhdr            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fcud            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        frowid          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        x01            in varchar2  default null,
        x02            in varchar2  default null,
        x03            in varchar2  default null,
        x04            in varchar2  default null,
        x05            in varchar2  default null,
        x06            in varchar2  default null,
        x07            in varchar2  default null,
        x08            in varchar2  default null,
        x09            in varchar2  default null,
        x10            in varchar2  default null,
        x11            in varchar2  default null,
        x12            in varchar2  default null,
        x13            in varchar2  default null,
        x14            in varchar2  default null,
        x15            in varchar2  default null,
        x16            in varchar2  default null,
        x17            in varchar2  default null,
        x18            in varchar2  default null,
        x19            in varchar2  default null,
        x20            in varchar2  default null,
        p_listener      in wwv_flow_global.vc_arr2 default empty_vc_arr, -- used to communicate with apex listner
        p_map1          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_map2          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_map3          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_survey_map    in varchar2  default null,
        p_flow_current_min_row      in varchar2 default '1',
        p_flow_current_max_rows    in varchar2 default '10',
        p_flow_current_rows_fetched in varchar2 default '0',
        p_debug                    in varchar2 default 'NO',
        p_trace                    in varchar2 default 'NO',
        p_md5_checksum              in varchar2 default '0',
        p_page_submission_id        in varchar2 default null,
        p_time_zone                in varchar2 default null,
        p_ignore_01    in varchar2 default null,
        p_ignore_02    in varchar2 default null,
        p_ignore_03    in varchar2 default null,
        p_ignore_04    in varchar2 default null,
        p_ignore_05    in varchar2 default null,
        p_ignore_06    in varchar2 default null,
        p_ignore_07    in varchar2 default null,
        p_ignore_08    in varchar2 default null,
        p_ignore_09    in varchar2 default null,
        p_ignore_10    in varchar2 default null,
        p_lang          in varchar2 default null,
        p_territory    in varchar2 default null)
    The normal approach to creating forms in APEX is to use declarative page items, or to create items dynamically using the apex_item API. APEX knows how to process these items because they are generated with names matching wwv_flow.accept parameters, but not manually created controls with arbitrary name attributes.
    Are you planning on doing all of your form submission via AJAX? (I doubt that APEX will be able to natively handle a file browse control with a multiple attribute.) If so, remove the name="myFiles" attribute. You will still be able to access the control in JS using the ID, but APEX won't see it.

  • Problem with the input file format to be stored in database

    Hi,
    I am facing some problem with the input format. I am using the table name as data.employee. But i could not able to process the message forward. I am getting this error,
    com.ibm.db2.jcc.c.SqlException: java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.
    Can you please help me prposing a solution for this format.
    Thanks,
    SOorya

    I think you are missing out the COMMIT operation.
    At the DB2 end before closing the connection if you do a 'COMMIT' then this may remove your error.
    i.e. after you close the Resultset>close the statement object> perform 'COMMIT' operation--> then close the connection.
    Also refer :-
    http://www.dbforums.com/archive/index.php/t-976407.html
    http://www.dbforums.com/showthread.php?t=1628183
    I hope this will help you.
    Thanks,
    Vijaya

  • How to use Flash Encoder with an input file?

    In WME I can stream a file input (no capture device).  How can I do this in FME, which only looks for a capture device? Thanks.

    On that note, using an audio mixer, can you mix in voice from a mic into the signal? so you could select/mix from mic or movie audio?
    If you try that let me know how it works, because while I can now get the audio from the movie playing, the mic input is used up and so no other audio available. Maybe a mixer like you have would work.
    Best wishes,
    Adninjastrator

  • How-to use Excel for the XML file input?

    Hello all,
    Following our discussion with Gerhard Steinhuber on the very nice tutorial from Horst Schaude , "How to upload mass data via XML File Input" , I am starting this new discussion.
    In the comments section of this previous cited tutorial, Rufat Gadirov explains how to use a generated XML from Eclipse instead of your XSD file as your source in Excel.
    However, in spite of all the instructions, I am still facing the same issue in Excel when I try to save my file as XML : "The XML maps in this workbook are not exportable".
    What I try to do is to create one or more Sales Orders with multiple Items in it from a XML File Input, using excel to enter data.
    The part with the File input is working (if I directly upload my file to the webDAV, it creates a sales order instance with multiple items).
    The only missing part is the Excel data input that I cannot make work. Any help on this matter would be greatly appreciated.
    Here is my XML file that I try to use as a source in Excel before inputing data from Excel:
    <?xml version="1.0" encoding="UTF-8"?>
    <p:MySalesOrderUploadedIntegrationInputRequest xmlns:p="http://001365xxx-one-off.sap.com/YUUD0G3OY_" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MessageHeader>
        <CreationDateTime>2015-03-02T12:00:00.000Z</CreationDateTime>
    </MessageHeader>
        <List actionCode="01" listCompleteTransmissionIndicator="true" reconciliationPeriodCounterValue="0">
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
        </List>
    </p:MySalesOrderUploadedIntegrationInputRequest>
    Thank you all for your attention.
    Best regards.
    Jacques-Antoine Ollier

    Hello Jacques-Antoine,
    I suppose that as you have tried to construct a map from the schema, you have taken the elements from the List level down. In this case I also can't export the map.
    But if you take the elements from the level MySalesOrderUploaded down, you'll get the exportable map (screenshots)
    Best regards,
    Leonid Granatstein

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • Passing request of file input type to a jsp

    Hi i m using this script for file uploading the form is.... <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form action="uploadscript.jsp" name="filesForm" enctype="multipart/form-data" method="post">
    Please specify a file, or a set of files:
    <input type="file" name="userfile_parent" value="userfile_parent" >
    <input type="submit" value="submit" value="Send">
    </form> </body> </html> And i am tring to get the url on uploadscript.jsp by using String parentPath=request.getParameter("userfile_parent"); but i foud that its value is NULL it is not working what should i do to get the userfile_parent on uploadscript.jsp help me!!! Message was edited by: UDAY Message was edited by: UDAY
    avajain      
    Posts: 135
    From: Noida , India
    Registered: 5/10/06
    Read      Re: Passing response but getting NULL
    Posted: Sep 20, 2006 2:43 AM in response to: UDAY in response to: UDAY      
         Click to reply to this thread      Reply
    Use method="GET" in place of method="post" .
    Thanks
    UDAY      
    Posts: 26
    From: JAIPUR
    Registered: 8/14/06
    Read      Re: Passing response but getting NULL
    Posted: Sep 20, 2006 3:18 AM in response to: avajain in response to: avajain      
    Click to edit this message...           Click to reply to this thread      Reply
    now it is giving this error message by e.getMessage()
    [br]the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
    the uploadscript is this....
    http://www.one.esmartstudent.com
    can u please help me.

    Here is sample code which we have used in one of our projects with org.apache.commons.fileupload.*.
    You can find String fullName = (String) formValues.get("FULLNAMES"); at the end that gives name of file.
    <%@ page import="java.util.*"%>
    <%@ page import="java.util.List"%>
    <%@ page import="java.util.Iterator"%>
    <%@ page import="java.io.File"%>
    <%@ page import="java.io.*"%>
    <%@ page import="org.apache.commons.fileupload.*"%>
    <%@ page import="org.apache.commons.fileupload.disk.*"%>
    <%@ page import="org.apache.commons.fileupload.servlet.*"%>
    <%!     
         //method to return file extension
         String getFileExt(String xPath){ 
                   //Find extension
                   int dotindex = 0;     //extension character position
                   dotindex = xPath.lastIndexOf('.');
                   if (dotindex == -1){     // no extension      
                        return "";
                   int slashindex = 0;     //seperator character position
                   slashindex = Math.max(xPath.lastIndexOf('/'),xPath.lastIndexOf('\\'));
                   if (slashindex == -1){     // no seperator characters in string 
                        return xPath.substring(dotindex);
                   if (dotindex < slashindex){     //check last "." character is not before last seperator 
                        return "";
                   return xPath.substring(dotindex);
    %>
    <%           
    Map formValues = new HashMap();
    String fileName = "";
    boolean uploaded = false;
         // Check that we have a file upload request
         boolean isMultipart = FileUpload.isMultipartContent(request);
         //Create variables for path, filename and extension
         String newFilePath = CoeResourceBundle.getEmailProperties("FILE_UPLOAD_PATH");//application.getRealPath("/")+"temp";
         String newFileName ="";
         String FileExt = "";      
         //System.out.println(" newFilePath"+newFilePath+"/");
         //out.println(" newFilePath"+newFilePath+"<br>");
         // Create a factory for disk-based file items
         FileItemFactory factory = new DiskFileItemFactory();
         // Create a new file upload handler
         ServletFileUpload upload = new ServletFileUpload(factory);
         // Parse the request
         List /* FileItem */ items = upload.parseRequest(request);
         // System.out.println(" newFilePath"+newFilePath+"/");
         // Process the uploaded items
         Iterator iter = items.iterator();
         //Form fields
         while (iter.hasNext()) { 
         //System.out.println("in iterator");
              FileItem item = (FileItem) iter.next();
              if (item.isFormField()) { 
                   String name = item.getFieldName();
                   String value = item.getString();
                   if (name.equals("newFileName")) { 
                        newFileName = value;
                   //System.out.println("LOADING");
                   formValues.put(name,value);
              else { 
              //System.out.println("in iterator----");
                   String fieldName = item.getFieldName();
                   fileName = item.getName();
                   int index = fileName.lastIndexOf("\\");
              if(index != -1)
                        fileName = fileName.substring(index + 1);
              else
                        fileName = fileName;
                   FileExt = getFileExt(fileName);
                   String contentType = item.getContentType();
                   boolean isInMemory = item.isInMemory();
                   long sizeInBytes = item.getSize();
                   if (fileName.equals("") || sizeInBytes==0){ 
                        out.println("Not a valid file.<br>No upload attempted.<br><br>");
                   } else { 
                   // out.println("ACTUAL fileName= " newFilePath"\\"+fileName+ "<br>");
                        //File uploadedFile = new File(newFilePath+"\\", newFileName+FileExt);
                        File uploadedFile = new File(newFilePath+"/",fileName);
                        File oldFile = new File(CoeResourceBundle.getEmailProperties("FILE_UPLOAD_PATH")+"/"+fileName);
                        File oldFileApproved = new File(CoeResourceBundle.getEmailProperties("APPROVED_FILE_LOCATION")+"/"+fileName);
                        try{ 
                             if (!oldFile.exists()&&!oldFileApproved.exists())
                                  item.write(uploadedFile);
                                  uploaded = true;
                             //out.println(fileName+" was successfully uploaded as "+ newFileName+FileExt +".<br><br>");
                        catch (java.lang.Exception e) { 
                             out.println("Errors prevented the file upload.<br>"+fileName+ " was not uploaded.<br><br>");
         String userid = (String) formValues.get("USERID");
         String fullName = (String) formValues.get("FULLNAMES");
         String email = (String) formValues.get("EMAILID");
         String empno = (String) formValues.get("EMPNO");
         String docType = (String) formValues.get("DOCTYPE");
         String desc = (String) formValues.get("MYTEXT");
         String title = (String) formValues.get("TITLEBOX");
         String module = (String) formValues.get("MODULE");
         String techfunctype = (String) formValues.get("TECHFUNCTYPE");
    %>

  • Issue with file to file in PI 7.3 (Splitting huge files)

    Hi All,
    Need your help in fixing the issue with file splitting
    We are doing some sample scenarios(file to file) on PI 7.3 server.
    We are trying to split a 10MB file by using the 'Advanced Mode' option in the sender file adapter. We gave max split file size as 2MB. The file got split into 5 chunks and was successfully sent to receiver file adapter. In receiver adapter we are able to see that. But in the target folder only 1 file was seen with size 2MB. All other chunks were missing. We need to have the whole data sent from source to target.
    How to fix this issue? please provide your inputs.
    Thanks and Regards,
    Lakshmi Narayana

    PI 7.3 has capable of processing larger size files.
    Questions:
    Have you picked EOIO quality of service? Hope you dont do mapping or content conversion for this file?
    have you seen this link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a06d79f3-d094-2e10-1a81-f4d802d0bcf1?QuickLink=index&overridelayout=true
    http://help.sap.com/saphelp_nw73/helpdata/en/44/682BCD7F2A6D12E10000000A1553F6/frameset.htm

  • Windows 8.1 ICS with file sharing between computers

    Can someone help me get ICS working with file sharing between two computers (directly connected), without enabling file sharing on the internet network (on a public untrusted network)?  Is this possible?  I have set up ICS between two Windows 8.1
    machines, but i can only get file sharing to work in one direction (from machine B to machine A)... UNLESS I turn on file sharing/discovery with the entire network from machine A (which i do not want to do).  I am not sure this exact question has been
    asked, so my apologies if it has.
    Here is my configuration.
    Machine A: win 8.1 (up to date), two NICs:  a wireless card (connected to internet) and a gigabit NIC (connected to machine B)
    Machine B: win 8.1 (up to date), one NIC, a gigabit card connected to machine A
    What i did:
    On Machine A:  I enabled ICS on machine A's wireless card, which automatically assigned the IP address 192.168.137.1 to the second NIC
    On Machine B:DHCP was enabled so it automatically got an ip address (192.168.137.62), internet sharing works fine (i can open a browser, get email, etc.)
    On Machine B: I enabled "Find devices and content" on the network device
    On Machine A: Going into "view network settings" it lists my wireless network and the gigabit NIC.  The wireless under 'Wi-Fi' says 'Connected', and i can click on this and I have the option to turn on "Find devices and content".
     On the wifi connection, i leave 'Find devices and content' turned OFF (so i don't discover computers on the wireless network, which is a public network).  My gigabit NIC shows up as "unidentified network"/"Limited".
     When i click on the gigabit NIC, it does NOT give me an option to turn on "Find devices and content", it just shows some properties of the NIC (manufacturer, description, driver, mac address) and button that says "Copy".  On
    the gigabit connection's properties (which is listed as "unidentified network/limited"), the option for 'Find devices and content' is missing.
    On Machine A: I open a file browser and type '\\192.168.137.62' and it works correctly, i can see the computer and move files around.
    On Machine B: It doesn't work.  I open a file browser and type in "\\192.168.137.1", and nothing happens.
    If i enable 'Find devices and content' on machine A's wifi connection, everything works, but now everyone on the public network can see my computer.
    Question:  How can i enable file sharing between machine A and machine B ONLY?
    Thanks for any help you can provide.

    The whole point of public networks is that they are unsafe, so file sharing is not permitted for your protection.
      If you have a network which you know is safe, the way to get file sharing working is to change your security policy so that it is set to private, not public. You do this from the local security policy (on the ICS computer).
    Bill

Maybe you are looking for