• 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. Help on Creating table field.

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 14996
  • 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

Help on Creating table field.

venuuuuu
venuuuuu over 7 years ago

Hi All,

I am looking for command to create table field with skill. I tried using hiCreateTreeTable() command but didn't get field I am looking for. I have attached existing field window image that I am expecting to write with skill. Please let me know if you have any ideas.

Thank you.

  • Cancel
  • Marben
    Marben over 7 years ago

    Hi Venuu,

    Check this out.

    Hope this help.

    Best regards,

    Marben

    ; create a root tree
    indexTree=hiCreateTree('index)

     

    ; create two tree items and append them to the root tree
    dow=hiCreateTreeItem('dow list("Dow Jones"))
    nas=hiCreateTreeItem('nas list("NASDAQ"))
    hiTreeAppendItem(indexTree dow)
    hiTreeAppendItem(indexTree nas)

     

    ; create two sub-trees
    dowTree=hiCreateTree('dows)
    nasTree=hiCreateTree('nass)

     

    ; put the two sub-trees into the two items created earlier
    hiItemInsertTree(dow dowTree)
    hiItemInsertTree(nas nasTree)

     

    ; add a few leaves for the dowTree and nasTree
    hiTreeAppendItem(dowTree hiCreateTreeItem('cdn list("Cadence" 80.5 1 "Strong
       Buy")))
    hiTreeAppendItem(dowTree hiCreateTreeItem('ibm list("I.B.M." 118 3 "Hold")))
    hiTreeAppendItem(nasTree hiCreateTreeItem('sunw list("Sun Micro" 27.750 4
       "Sell")))
    hiTreeAppendItem(nasTree hiCreateTreeItem('orcl list("Oracle" 28.925 5 "Strong
       Sell")))

     

    ; create callback, which is called whenever any tree items are selected and which
    ; prints the selected item's description
    procedure( myTreeCB(name itemSymList)
         while(itemSymList
             itemSym=car(itemSymList)
             println(hiGetTreeItemDescription(eval(itemSym)))
             itemSymList=cdr(itemSymList)
             )

    )

     

    ; create tree table and use indexTree as the value for ?choice
    treeField = hiCreateTreeTable(
                ?name `treeField
                ?title "Stocks"
                ?titleAlignment `center
                ?headers list(list("Name"             125    'left    `string)
                               list("Price"           60     'left    `float3)
                               list("Rating"          45     'center  `int)
                               list("Recommendation"  125    'right)
                              )
                 ?choice indexTree
                 ?callback "myTreeCB"
                 )

     

    ; create a form
    form = hiCreateAppForm(
                ?name 'form
                ?formTitle "A Tree Sample"
                ?fields list(
                              list(treeField 5:5 400:200 55)
                            )
                ?initialSize 500:250)

     

    hiDisplayForm(form)

    • 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