• 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 store values for the form fields?

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13453
  • 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 store values for the form fields?

ssram
ssram over 6 years ago

How do i store the last used field value here in the following function? Is there a variable that i could use for it like "?defValue"? I would like use the last used Library again when i go back to the form field so that i dont have to type in every time. 

ddHiCreateLibraryComboField(
    ?name 'libraryName
    ?prompt "Library : "
    ;?value ""
    ?defValue ""
     ?callback "ddsUpdateSyncWithForm()"
    )

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    The simplest is not to recreate the form each time you display it. If you create the form once and then display the same form each time, it will retain the values you used previously without needing to do anything special. Otherwise you'd need to record the values you want to keep in the callback for the form, and then use these as the ?defValue values (or ?value values) next time you create the form - but this seems like overkill to me when just re-using the same form would preserve the values.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    The simplest is not to recreate the form each time you display it. If you create the form once and then display the same form each time, it will retain the values you used previously without needing to do anything special. Otherwise you'd need to record the values you want to keep in the callback for the form, and then use these as the ?defValue values (or ?value values) next time you create the form - but this seems like overkill to me when just re-using the same form would preserve the values.

    Regards,

    Andrew

    • 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