Home > Community > Forums > Custom IC SKILL > How to save the data of fields in a Form

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to save the data of fields in a Form 

Last post Mon, Feb 11 2013 6:41 PM by Neeraj Vardhan. 5 replies.
Started by Neeraj Vardhan 06 Feb 2013 10:04 PM. Topic has 5 replies and 982 views
Page 1 of 1 (6 items)
Sort Posts:
  • Wed, Feb 6 2013 10:04 PM

    How to save the data of fields in a Form Reply

    Hi, i wanted to save the data of the fields in a Form to specific directory or specific folder.

     

     

     

    Filed under:
    • Post Points: 35
  • Thu, Feb 7 2013 3:45 AM

    Re: How to save the data of fields in a Form Reply

    You didn't actually ask a question, so not sure what your issue is. This post gives an example of a form with an option to save and load a template to a file - maybe that addresses your need?

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Feb 7 2013 7:38 PM

    Re: How to save the data of fields in a Form Reply

    Hi andrew,
     
    I created a form with some fields, now i want to save the data entered into the fields into a specific folder like a log file. So that i can process the data from that log file.
     
    Thanks & Regards
    W.Neeraj Vardhan 
    • Post Points: 20
  • Fri, Feb 8 2013 7:37 AM

    Re: How to save the data of fields in a Form Reply

    So presumably my reply (referencing the other post) answered your question?

    Regards,

    Andrew.

    • Post Points: 5
  • Mon, Feb 11 2013 8:53 AM

    • StefanSL
    • Top 150 Contributor
    • Joined on Mon, Nov 2 2009
    • Reutlingen, Baden-Wurttemberg
    • Posts 47
    • Points 860
    Re: How to save the data of fields in a Form Reply

    Hi W.Neeraj,

    to make it a bit easier
    (if my understanding is correct, you want to write all field/value-pairs into a file):

    you need to know the name of your form -> variable thisform
       - hiFormList() can be used to show all forms currently known -
    and you have opened a file for writing -> handle formdatafile

    now: loop over all fields of your form, get the value of each field, write name and value to your outfile;
    i've divided this into two lines, formatting a string and printing it to the outport:

    8< - - - - - - - - - - - - - - -
    foreach(thisfield thisform~>fieldList
    thisfieldvalue = get(thisform thisfield)~>value
    sprintf(printline "FIELD:%L:VALUE:%L\n" thisfield thisfieldvalue)
    fprintf(formdatafile printline)
    )

    close(formdatafile)
    8< - - - - - - - - - - - - - - -

    hope this helps

    Stefan

    Filed under:
    • Post Points: 20
  • Mon, Feb 11 2013 6:41 PM

    Re: How to save the data of fields in a Form Reply

    Thank you Andrew and Stefan for the help. 

     Regards

    W.Neeraj Vardhan 

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by Neeraj Vardhan at 06 Feb 2013 10:04 PM. Topic has 5 replies.