• 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 create a dynamic form?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14968
  • 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 create a dynamic form?

fatcat1206
fatcat1206 over 9 years ago

Hi All

I'd like to create a dynamic form, just like the property form of "vpwl" voltage source in the "analogLib".

In my form, I also has a integer field like "Number of pairs of points" to define how many groups of string fields I would like to have later on; this group of fields can be understand as the "Time x" and "Voltage x" pairs in the "vpwl" property form.

In the callback functions of the integer field, I have changed the form->fields value accordingly, to "add" or "remove" the corresponding fields groups in the list of fields

Although the form->fields value has been changed, the form still remains the same.

Does anyone know how to update the form, or make a dynamic form

P.S when one field is removed from the form, I want the content in that field is still kept; so when this form has been brought back later, the content is still there.

Best Regards

Yi

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

    Yi,

    Here's one example of doing such a thing: 

    Another possibility would be to control the visibility of fields - this way you could keep the content of the fields once you've added them, but use the ->invisible property on the field to make it so it's not shown. Alternatively you can have callbacks on the fields to store away the values in another structure, or collect this info just before you delete the filed. Lots of ways to skin a cat.

    Andrew.

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

    Yi,

    Here's one example of doing such a thing: 

    Another possibility would be to control the visibility of fields - this way you could keep the content of the fields once you've added them, but use the ->invisible property on the field to make it so it's not shown. Alternatively you can have callbacks on the fields to store away the values in another structure, or collect this info just before you delete the filed. Lots of ways to skin a cat.

    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