• 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. Form locked when callback fails

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 13482
  • 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

Form locked when callback fails

Danilo P
Danilo P over 12 years ago

 Hi,

The skill below is used to create a simple form containing a string field with a modifyCallback.

Eveything goes fine writing in the string field, but when the callback generates an error  (artificially reproduced typing "abc")  the form is locked and "OK"/"Cancel" buttons can't be used anymore. Once this happens, even if the form is invoked again or it is set to 'unbound in the CIW, the issue persists.

Could someone be so kind and explain me why this wrong behaviour?

Thank you

procedure(testMyForm()

 

let(()

    hiCreateAppForm(

            ?name 'test_form

            ?formTitle "TEST"

            ?fields list(

                  list( hiCreateStringField(?name 'myString ?prompt "->" ?modifyCallback "matchCB" ?editable t) 10:10 200:20 100 ))

            ?buttonLayout list( 'OKCancelDef)

            ?callback list(   "printf(\"OK\")" "printf(\"CANCEL\")")

      )

      hiDisplayForm('test_form)

))

 

procedure(matchCB( @rest arg)

let(( )

      stringItem = test_form->myString->value

      if( equal(stringItem "abc") then

            printf("ERROR %s \n" )              ;;;; ERROR HERE, it locks the form

      else

            printf("Hello world %s \n" stringItem)

      )

      t     ;any value is allowed in the string field

))

 

 

  • Cancel
Parents
  • Danilo P
    Danilo P over 12 years ago

    Hi Andrew,

    any way to unbound via skill the form from the CIW when this happens? Something like test_form = nil.

    Just not to close dfII and start again to un-lock the form

    Thank you

    Danilo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Danilo P
    Danilo P over 12 years ago

    Hi Andrew,

    any way to unbound via skill the form from the CIW when this happens? Something like test_form = nil.

    Just not to close dfII and start again to un-lock the form

    Thank you

    Danilo

    • Cancel
    • Vote Up 0 Vote Down
    • 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.

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

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