• 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. Display lists vertically

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13056
  • 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

Display lists vertically

gaurc
gaurc over 9 years ago

I have two lists -

Cell Name = ("a"  "b"  "c")

View Name = ("1"  "2"  "3")

I want to display these two together using Skill as below-

CellName    ViewName

a            1

b            2

c            3

How to do it? I used hiCreateReportField() but it display them horizontally as below -

CellName    ViewName

a                    b

1                    2

  • Cancel
  • skillUser
    skillUser over 9 years ago

    Hi Gaur,

    Try something like this:

    
    procedure(CCFreportFieldTest()
    let( (header report cellList viewList form)
    cellList = list("a" "b" "c")
    viewList = list("1" "2" "3")
    header = list(
    list("CellName" 150 'left 'string t)
    list("ViewName" 150 'left 'string t))
    report = hiCreateReportField(
    ?name 'reportField ?title "Cell & View test"
    ?titleAlignment 'center
    ?headers header
    ?choices foreach(mapcar (cell view) cellList viewList
    list(cell view)))
    form = hiCreateAppForm(
    ?name 'CCFreportField
    ?formTitle "Testing Report Field"
    ?initialSize t
    ?fields list( list(report 10:10 400:150 10)))
    hiDisplayForm(form)
    form
    ))
    CCFreportFieldTest()

    The foreach is used to iterate over the two lists (should be the same length) so that you can gather items from each one line at a time.

    Hope it helps!

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • gaurc
    gaurc over 9 years ago

    Thanks a lot Lawrence...

    • 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