• 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 un-sort a hiCreateTreeTable?

Stats

  • Replies 2
  • Subscribers 147
  • Views 65
  • Members are here 0

How to un-sort a hiCreateTreeTable?

p94todorov
p94todorov 5 hours ago

Hi Everyone,

I've been using some tree tables and they have a built-in ability to sort the data by specified column. By default the table appear as being build with the items listed sequentially. At this time the sort  property is not defined:

myTable->sort is nil. If you click on a sortable column 1 or two times it will sort it either on ascending or descending order, while myTable->sort will become '(colNum t) or '(colNum nil). I was expecting that I can simply feed the original property back to nil and all sorting will be gone or push it out of bounds, but an error/warning is produced:



So my qeustion is how I can restore the ordering of the items in the GUI to the original order? I see that the original filedList is not modified, so this is a GUI trick only. I can imagine adding additional column, feed the item number and either sort on it directly or hide it and trigged the sroting with some other sorting callback on external button or bindkey. Getting a snapshot of the tree, deleting the current one and re-attaching it to the tree table doesn't work, since the table keeps the sorting condition. I am trying to avoid the approach with the dummy column if possible, since it will send me down a road to update a lot of other things and tools that are already attached to the current format.

Is there an easier way to revert back the tree table to the original order of the tree items? 

Regards,
Petar

  • Cancel
  • Sign in to reply
Parents
  • Andrew Beckett
    Andrew Beckett 4 hours ago

    Hi Petar,

    From what I can see (I checked in the code too), this is not currently possible. It seems a reasonable request to me; I will file an enhancement request for this.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • p94todorov
    p94todorov 3 hours ago in reply to Andrew Beckett

    Hi Andrew,

    thank you for the quick reply, confirming my observations and going a step further with submitting an enhancement request.
    For now I will probably go with the dummy column approach or simply live with it.

    Regards,
    Petar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • p94todorov
    p94todorov 3 hours ago in reply to Andrew Beckett

    Hi Andrew,

    thank you for the quick reply, confirming my observations and going a step further with submitting an enhancement request.
    For now I will probably go with the dummy column approach or simply live with it.

    Regards,
    Petar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data

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.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information