• 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. Allegro X Scripting - Skill
  3. Can I do _something_ as chars are entered in a SKILL form...

Stats

  • Replies 5
  • Subscribers 18
  • Views 2309
  • Members are here 0
More Content

Can I do _something_ as chars are entered in a SKILL form text field?

EvanShultz
EvanShultz over 6 years ago

I would like to have a filter in my form that works as characters are typed into the text box.

The old "Find by Name or Property" dialog doesn't do this and you have to hit Tab or navigate away from the text box for the filter to activate. However, the newer Find by Query dialog as a "Filter Setting" sub-dialog that seems to be dynamic and working as characters are typed in. This is what I would like to achieve.

Is there a way to capture changes in a text box as they happen? Surely filtering isn't the only application where this might apply, and I have reason to believe it's possible.

Thanks!

  • Cancel
  • Sign in to reply
  • Tyler
    Tyler over 6 years ago

    I don't believe that the Allegro skill APIs allow you to do this. You can get events when a field is changed or when a field is activated. The axl form interface doesn't provide the complete interface for everything that is possible to be done with a form. The Find by Query form that you mentioned is a native dialog in the tool that handles special events like this. I think that handling typing as it is typed isn't supported for performance and simplicity. The idea being that you validate the user's entered value once when they are finished entering it. 

    Short answer: To my knowledge, there is no support for this with a skill implemented form. You could request it be added, of course.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 6 years ago in reply to Tyler

    What he said.

    I asked for this many years ago and got an answer along the lines of it not being possible.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EvanShultz
    EvanShultz over 6 years ago in reply to eDave

    Thank you.

    How do I "get events when a field is changed or when a field is activated"? Are you talking about axlForm*MouseActive and axlFormSetEventAction? I'm wondering if there are fancy tricks I don't know.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Tyler
    Tyler over 6 years ago in reply to EvanShultz

    You're already getting events when the field is changed. That's your standard callback routine. If you want to get them when the user clicks IN a form (activation), then axlFormSetEventAction is what you want. I think the only time I've seen it used is if you have something like a bitmap on the form that illustrates what that field is used for or what it represents. Doesn't do much good to have that lag a field behind by updating when you tab out of the field, so you'd want to update it when you click to enter it. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EvanShultz
    EvanShultz over 6 years ago in reply to Tyler

    OK. I know and am taking advantage of it. Thanks for the clarification. I'll submit another enhancement request.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

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