• 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 dropdown option in a Form? (just like OpenFile...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 12359
  • 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 dropdown option in a Form? (just like OpenFile)

shubhy22
shubhy22 over 4 years ago

Hi, 
I've written a SKILL code below which opens a form and prompts users to input Lib-name, Cell-name, and View-name, MANUALLY. 
(The input of these fields is then fed to a bigger SKILL program.)
I want to improvise this code by giving the users the flexibility of a dropdown menu just like we have it in the OpenFile form.
This way they don't have to input everything manually but can easily select the desired Lib, Cell & View names as present in the Library Manager and can submit the form.

Any way to do it?  Grateful for all the help! 

SKILL Code : 

procedure( openform()
let(list(lib cell view form)

lib = hiCreateStringField(?name 'libname     ?prompt "Library Name : "     ?value ""     ?font "0.032" )

cell = hiCreateStringField(?name 'cellname     ?prompt "Cell Name : "     ?value ""     ?font "0.032" )

view = hiCreateStringField(?name 'viewname     ?prompt "View Name : "     ?value ""     ?font "0.032" )

form = hiCreateAppForm(?name 'fileO     ?formTitle "Select the View"     ?buttonLayout 'OKCancel     ?fields list( lib cell view ) )
hiDisplayForm(form)
))

openform()

  • Cancel
  • skillUser
    skillUser over 4 years ago

    Hi there,

    I think the commands that you want to use are ddHiCreateLibraryComboField(), ddHiCreateCellComboField() and ddHiCreateViewComboField() in place of the hiCreateStringField function, also look at ddHiLinkFields() to link these fields together so that view is dependent on cell, and cell is dependent on library.

    Hope this helps!

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to skillUser

    See an example in this post.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • shubhy22
    shubhy22 over 4 years ago in reply to Andrew Beckett

    Thanks a ton, Andrew!
    I learnt a lot from your example and have also customized the 'grid' code to take in more inputs from the user.
    Never knew we could design the layout of a Form by this method.  
    Grateful to you!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • shubhy22
    shubhy22 over 4 years ago in reply to skillUser

    Thank you Lawrence for a speedy reply. Didn't know these commands existed. Thanks for sharing

    • 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