• 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. Dynamically hide columns in hiCreateReportField

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 142
  • Views 13673
  • 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

Dynamically hide columns in hiCreateReportField

archive
archive over 18 years ago

   Is there a way to dynamically hide columns in a report field? I have a reportField with multiple columns of data. The user wants to be able to hide columns and re-display columns at will. I know that you can stretch the column width until you can't see it anymore but this is not a clean approach to the problem. Once a column width has been stretched to nothing, the user has to remember the location of the column in order to stretch it back. I have tried changing the column width in the "headers" attribute on the report field, but the field itself never changes. I'd rather not delete the field and recreate it, but that may be my only option.

Any ideas?

-Derek


Originally posted in cdnusers.org by dmay
  • Cancel
  • archive
    archive over 18 years ago

    I simple way is to use command line tool called awk.
    Save the result file into a file. be SURE to put a large enough "column width" : 3000 for instance (/!\ default is 80 often not enough).
    then type un your favorite shell :
    cat file.txt |awk '{print($1 $3)}'
    that will print column 1 and 3

    cat file.txt |awk '{print("column1" $1 "column 4" $4)}'
    if you want to insert text "column1" and "column 4" inbetween... and many other possibilities (search on the web)

    Its not very clean, but very handy
    ++


    Originally posted in cdnusers.org by ebecheto
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Maybe I wasn't very clear in my first post. I am referring to the hiCreateReportField in Skill code. If I create a form that contains a report field (created with hiCreateReportField), I would like to dynamically update the field in the form to hide or redisplay a column of my choosing. If I change the "headers" attribute on an exisiting reportField on a form, the column widths DO NOT change.

    I have no idea what awk and shells have to do with this.


    Originally posted in cdnusers.org by dmay
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Thanks, dmay. It works great


    Originally posted in cdnusers.org by Britta
    • 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