How to create a unique file name each time the form is saved?

I've got a form with several data items. When the user saves the form, it saves it as an .xml file. So far so good. But then I want the user to be able to start over and put in a new data set. I used the reset form button and this clears out the old data. But when the user goes to save the form for the second set of data, the default name of the .xml file is the same as the last record set. How do I get LCD to create a unique data name each time the form is saved? I know that the user can enter a new name, but I do not want them to have to think that much.
Alternatively, is there a way that a user can enter several forms of data and save all of the data in one XML file that my PDF can scroll through or that I can import into excel and keep all of the data sets separate?

Thanks Paul for the post. It sounds like this program is simply not designed for one user to keypunch a batch of forms. It would appear to limit the program's use to users who only need to key in one record/form. While a good solution for multiple users who need to enter just one set of data, the limitation would explain why this program is not widely used.

Similar Messages

  • How to create a unique file name within a main()?

    I am creating a file using a button inside the main() .
    Each time the button is clicked, new file should be created.
    The file names should be distinct and differ in a number that follows the name for ex. MyFile1.txt, MyFile2.txt, MyFile3.txt and so on.
    Any ideas?
    thanks

    I think you want that last line to readwhile (f.exists())  // note the absent "!"since your loop as coded will end up with a filename that does exist rather than one that does not exist. You might also tryint counter=0;
    File f=null;
    do
      f=new File("myfile" + counter++);
      while (!f.createNewFile()) // This will only create a file if it doesn't already exist.
    Caution! You can't use the counter after you create the file because the counter will already be the next number. You can use f.getName(), or if you have a psychological need to use the counter, prefix the "++" and start with -1 (or just skip 0)
    Doug

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How to create an Excel file from XML in the Receiver File Adapter Comm Ch

    How do I create an Excel file from XML in the Receiver File Adapter Communication Channel? I have my mapping done and I am outputting the file as a comma delimited csv file. However, the target can only process an Excel file (.xls). How can I generate an Excel in XI?
    I saw this blog, but I don't know how to create a XSLT transformation.
    /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
    Any help would be appreciated. Thanks.

    Here are the steps I took to create an XSLT transformation in XI 3.0:
    1. I created my source and target XSDs using XMLSpy.
    2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
    3. I created another XSLT mapping to format the target into Excel XML.
    4. Import the source and target XSDs in the IR's External Definitions
    5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
    6. Reference the XSL mappings in the Interface Mapping

  • How do I denote a file name for submitted XML form data?

    Hi guys, is there a way to change the submitted XML file name [when emailing form data] to something other than the cryptic string livecycle uses e.g. _e8hfydsh55hsksdf.xml
    Thanks for any help, cheers Dyr

    When you preview a PDF from inside designer, it uses a temp filename for the doc and therefore when you test xml submit etc you will get the 'e.g. _e8hfydsh55hsksdf.xml' as a filename. However if the form is saved locally (e.g. MyForm.pdf) and you use Reader / Acrobat to open the PDF, then the email's subject message as well as the xml file will be MyForm.xml. Does that help you?

  • How to create separate log files for each deployed web application in oc4j

    Hi All,
    I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
    Thanks and Regards,
    Ravi.

    Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
    John H.

  • How to create an output file name dinamically

    Hello Experts,
    I have created a report which is pulling information from our databases then running it on demand in order to get a plained-text file (shedule function). My question is how to handle the file name?  can i use a kind of variable to reach the required name?. For your information i was using the placeholders but i sitll need to put something else in the name which is dinamic.
    I.E : Prod 2011-04-01-08-01-13.txt
    2011-04-01-08-01-13 = which is the DateTime stamp
    Prod = I want to change this part with a parameter which will bring the required name
    I'm using Crystal Reports XI
    Thanks in advance,
    Agustin Munoz

    Need more info, are you using Enterprise?
    Nothing in Cr that can do this. If you are writing and app then typically one would use a GUID ID or some sort of time stamp, be careful though with time stamps, you could end up with a few outputs if they are generated in the same minute of second...
    Thnak you
    Don

  • How to create a jar file which is in the remote system?

    Hi,
    I have a set of files that resides in a remote system,which have to be "jar"red. I have a firewall in between. I want to create a jar file out of the files situated in the remote system.How do i go about this process.?

    Hi,
    You can't do that in a simple way. You need to have a port open in the firewall, and you need to have a server process on the remote machine.
    Kaj

  • How can I increment a dynamic value each time the request is sent?

    One of my requests is passing a sequence number which gets incremented every time the request is sent. The sequence number is incremented in javascript on the client; the html looks something like this: target=target+"&sequenceNumber="+sequenceNumber++;
    How can I simulate that behavior in eload?

    In this case all we needed was a randomly generated incrementing number, so we used the timestamp function available within Navigation Editor which is lightweight and easy to use.
    Open Navigation Editor (Ctrl + E) >
    Select the Query String (or Post) parameter which should be randomly incremented and change its Type in the properties window to function. The function name will auto populate to TimeStamp.
    Save the script and run...

  • Changing field entries each time the form is sent

    I am trying to create a document that I an fill out certain details and then send them to my clients for them to fill out their part. Each form will have the same questions, but the answers on my side will change depending on the client. So I need to be able to cater each one to the client. Is that possible?
    Its for wedding/event agreements. So I will say here is the details of your services and then they will fill our their contact info and other items....The form fields will remain the same. But the part I'm filling ot will be different each time...Hope that makes sense

    You can do this if you use a PDF form. You would have to add your information with Acrobat and then set those fields to read-only or flatten them so that the recipient won't be able to change the data. You'd then have to distribute the form with FormsCentral and send it out, assuming you need to collect the data with FormsCentral. The alternative is enabling the document with Acrobat and requesting that they email the completed form back to you. You lose the security that FormsCentral provides however.

  • Stop a calculated date from updating each time the form opens

    I have a calculated "read only" Date field, that populates the current date. how do I stop this from re-calculating the date once it is submitted?

    Hi Niall,
    Is there a way I can change this script (below) to populate the date field only if the form is "dirty", so it will automatically update once something is changed on the form. I just dont know what to put in the Javascript to make it update the date. I only know how to do it automatically in Form Calc
    Sample:
    var 
    MyDoc = event.target;MyDoc.dirty
    = true;app.exec("???");

  • Adobe Form - Problem of data not refreshing each time the form is called

    Dear All,
    I have created a web dynpro component comprsing of two views.
    In the first view i am displaying an ALV which is bound to an internal table.
    After selecting one record i click on a button which calls the second view and in the second view
    i am displaying an adobe form.
    i have provided a native wd submit button  which again calls the first view.
    The first time when i select the record it works fine and shows me correct data.
    but second time onwards it shows me the data one previous to the current row selected.
    Kindly give your valuable suggestions>
    Regards,
    Niti
    Moderator message: sorry wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on May 9, 2011 5:59 PM

    Instead of using in the java code.
    For the html page and in jsp pages use the following code
    1) Coding Method:
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    2) Browser setting:
    You can adjust the space to store the temporay files. On the Tools menu in Internet Explorer, click Internet Options, On the General tab, click Settings. you can select the newer version radio button also, adjust the "amount of disk space to use" slider towards the left side(equivalent to disable the cache)..
    cheers
    -balaji

  • How to create a logical file

    Hi,
    Please help me, i just want to know how to create a logical file and wht is the procedure to assign a physical file to the created logical file.

    Hi Abdul,
    Here is the process to create Logical File Path.
    1)Go to tcode FILE.
    2) Click on Logical File Path Definition. Give name "ZTEST" and some description.
    3) Click on Assignment of Physical Path to Logical Path. and provide Syntax Group and physical path.
    4) Click on Logical File Name Definition and give descrition, physical filename, Data format as ASC, Application area and logical path which you have created.
    Please check this links.
    Using Logical Files in ABAP Programs
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
    Creating and Defining Logical Filenames
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3df8358411d1829f0000e829fbfe/content.htm
    Regards,
    Priyanka.

  • How to create a CSV file in java

    how to create a CSV file in java

    this is the code that I have used in a hp project:
    private static final String DELIMIT = ",";
    StringBuffer buf = new StringBuffer();
    public void addString(String str){
    buf.append(toEscapedStringLiteral(str.replaceAll(" ","").trim())).append(DELIMIT);
    public void sendFile( String strData ,
                                String strTitle,
                                String strContType,
                                HttpServletResponse res ) throws IOException {
              byte[] _filedata=strData.getBytes();
              res.setContentType( strContType );
              res.setHeader( "Content-Disposition", "attachment;filename="+ strTitle );     
                     DataOutputStream out = new DataOutputStream( res.getOutputStream() );
              out.write( _filedata, 0, _filedata.length );
              out.close();
    public void addStringWhithReturn(String str){
              buf.append(toEscapedStringLiteral(str.replaceAll(" ","").trim()));
              buf.append( "\n" );
    private String toEscapedStringLiteral( String charSeq ) {
              if ( null == charSeq ) {
                   charSeq = "";
              return "\"" + charSeq + "\"";
    ....hope its help
    kou

  • How to have a unique value for each record??

    could any 1 help me out in this...
    I want to have a column name 'Order No' which should be unique.
    How to generate a unique value for each record.??

    could any 1 help me out in this...
    I want to have a column name 'Order No' which should be unique.
    How to generate a unique value for each record.?? If you are using SQL PLUS to create the table try something like
    this:
    CREATE TABLE ORDER_TEST (
    ORD_NO NUMBER (8) NOT NULL PRIMARY KEY,
    ORDERDATE DATE,
    CUSTID NUMBER (8) NOT NULL,
    SHIPDATE DATE,
    TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK
    (TOTAL >= 0),
    CONSTRAINT ORD_FOREIGN_KEY FOREIGN KEY (CUSTID) REFERENCES
    CUSTOMER (CUSTID),
    CONSTRAINT ORD_UNIQUE UNIQUE (ORD_NO)
    -- or a simpler table example
    DROP TABLE ORDER_TEST;
    CREATE TABLE ORDER_TEST (
    ORD_NO NUMBER (8),
    ORDERDATE DATE,
    CUSTID NUMBER (8) NOT NULL,
    SHIPDATE DATE,
    TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK
    (TOTAL >= 0),
    CONSTRAINT ORD_UNIQUE UNIQUE (ORD_NO)
    note: ORD_NO can also be a primary key
    If you are doing the INSERT during runtime from a form first
    create a sequence in SQL PLUS to handle the ORD_NO value:
    Create SEQUENCE ORDERNO_UNIQUEVAL_sqnc
    START WITH 000001
    NOMAXVALUE
    NOCACHE;
    and reference it as the ORD_NO parameter in your INSERT
    statement:
    ORDERNO_UNIQUEVAL_sqnc.NEXTVAL
    note: to maintain data integrity you must use the sequence
    everytime you insert a new order to table. To start a new
    sequence drop the sequence and re-create it with whatever "START
    WITH" value you want.
    Hope this helps
    Kevin

Maybe you are looking for

  • Palm Pre: Problem with e-mail app

    I've had my Palm Pre since release day.  I have two e-mail accounts: Yahoo! and a Roadrunner account.  I've never had a problem until last Thursday.  I didn't change any settings, but all of a sudden my e-mail won't work correctly.  SOMETIMES I get t

  • I want to back up all my photos to a flash drive - how to do?

    I have PSE8 and am running Win7 64 bit laptop. I want to back up all my photos to a flash drive. I can't seem to do this within my PSE8, just gives me the option of copying to a CD or DVD. Should I be doing this from My Pictures or can I do this in P

  • EDI 823 - IDOC FINSTA01Mapping problem

    While processing inbound IDOC for lockbox program i am able to create payment advice. but payment advice type is taking as '05'(Payment advice from Credit memo) it sholud be '06'(Payment advice for customer(EDI)) in AVIK table i am not able to map th

  • Widows Multimedia Video Enclosures to E-mail --- how to open them?

    I know that ".WMV" files are Microsoft files that people send me as enclosures. Out of the box Mac OS-X Leopard doesn't open them. Is there a plug in or something that would allow me to open them???? Thanks, -Bruce

  • Help required in derby database

    * Main.java * Created on August 31, 2007, 9:30 PM * To change this template, choose Tools | Template Manager * and open the template in the editor. package javaapplication5; * @author d import java.sql.*; import java.util.Properties; public class Mai