• 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 15408
  • 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
Parents
  • 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
Reply
  • 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
Children
No Data

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