• 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 launch function after select lib/cell/view with ddsSyncWithForm...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 1109
  • 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 launch function after select lib/cell/view with ddsSyncWithForm() then press Close button ?

Charley Chen
Charley Chen over 7 years ago

Hi All,

https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nanAEAQ&pageName=ArticleContent&sq=005d0000005nIGZAA2_201711106162892

It's  a example from https://support.cadence.com ,

I want to launch my own function after press 'Close' .

exampleLibName = hiCreateStringField(
    ?name 'exampleLibName
    ?prompt "Library Name"
    ?value ""
    ?callback "ddsUpdateSyncWithForm( )"
)
exampleCellName = hiCreateStringField(
    ?name 'exampleCellName
    ?prompt "Cell Name"
    ?callback "ddsUpdateSyncWithForm( )"
)
exampleViewName = hiCreateStringField(
    ?name 'exampleViewName
    ?prompt "View Name"
    ?callback "ddsUpdateSyncWithForm( )"
)
exampleBrowser = hiCreateButtonBoxField(
    ?name 'exampleBrowser
    ?prompt " "
    ?choices '(" Browse ")
    ?callback list("exampleBrowser( )")
)
hiCreateForm(
    'exampleOpenForm "Synched Form Example"
    "exampleOpenForm( )"
    list( exampleLibName exampleCellName exampleViewName exampleBrowser )
    ""
)
procedure( exampleBrowser( )
    ddsSyncWithForm( exampleOpenForm 'browse 'exampleLibName 'exampleCellName 'exampleViewName )
)

procedure( exampleOpenForm( )
    ddsSyncWithForm( exampleOpenForm 'other 'exampleLibName 'exampleCellName 'exampleViewName )
hiDisplayForm( 'exampleOpenForm )
)
 
ddsEndSyncWithForm() 

Thank you,

Charley

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago

    Charley,

    Do you mean the "Close" button on the library select UI or the "OK" button on the form in the example above? It's a slightly strange use model if you want to do something on the library select UI close - I don't think anything else works that way - especially as you could just type in the values in the fields. 

    So normally if you want something to be triggered on selection of lib/cell/view you'd do it via the field callbacks as then it would work for both values selected via the browser or values typed in, and is not dependent upon you closing the library select UI.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 7 years ago in reply to Andrew Beckett

    Andrew ,

    I got it. Thank you for help.

    Charley

    • 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