• 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. hiCreateReportField... passing arguments to its callbac...

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 143
  • Views 19052
  • 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

hiCreateReportField... passing arguments to its callback

trandolph
trandolph over 9 years ago

I am using hiCreateReportField and choosing the argument ?callback to find out which row

has been selected. The callback (as shown in the documentation for hiCreateReportField)

function is automatically passed two arguments. The first argument is the field name, the

second argument is a list of integers representing the selected items in the report.

My question is... How can I pass additional variables to my callback function while

keeping the two arguments passed automatically (fieldName selectedItems)?

Cadence doc...

reportField = hiCreateReportField(

...other arguments...

? callback 'reportCB

)

procedure( reportCB(fieldName selectedItems "sl")
  printf( "Report field callback, fieldName = %L, selectedItems = %L"           fieldName selectedItems )
)

  • Cancel
Parents
  • trandolph
    trandolph over 8 years ago

    Hello Andrew,

    Sorry for the late reply. Thank you that is indeed what I need.

    As usual it was my code. I loaded it into IDE set a few break points

    and saw what I was doing wrong.

    Thanks again for taking the time to educate... its really appreciated.

    -timr

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • trandolph
    trandolph over 8 years ago

    Hello Andrew,

    Sorry for the late reply. Thank you that is indeed what I need.

    As usual it was my code. I loaded it into IDE set a few break points

    and saw what I was doing wrong.

    Thanks again for taking the time to educate... its really appreciated.

    -timr

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • rajoli
    rajoli over 6 years ago in reply to trandolph

    Hi Andrew,

    Whenever user press column header in report filed we need to callback function for  that.

    How to implement that logic.

    Regards,

    Rajoli

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to rajoli

    Hi Rajoli,

    You do that with the ?sortCallback argument to the hiCreateReportField - this is then a function that gets called with which column is to be sorted (i.e. which you clicked) and the sort direction. See the documentation for more details.

    Regards,

    Andrew.

    • 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