• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to save the data of fields in a Form

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 145
  • Views 15406
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to save the data of fields in a Form

Neeraj Vardhan
Neeraj Vardhan over 12 years ago

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

 

 

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    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 
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

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

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StefanSL
    StefanSL over 12 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    Thank you Andrew and Stefan for the help. 

     Regards

    W.Neeraj Vardhan 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LogicWave
    LogicWave over 9 years ago

    Test link

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information