• 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 call values depending upon the checkbox selected

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 9822
  • 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

How to call values depending upon the checkbox selected

saurabh96
saurabh96 over 3 years ago

Hello ,

I have created a toggle field.

toggle_Entry=hiCreateToggleField(
?name 'toggle_Entry
?choices list(list('aa "test1") list('bb "test2") list('cc "test3"))
?value list(nil nil nil)
)

path_enter=hiCreateStringField(
?name 'path_enter
?invisible t
)

Now i want that when  test1 box is tick only then value assign in "path enter"  should be "use1"

when user selects test1 and test3 then value assign in "path enter" should be "use1,3"

and when user check boxes test1,2,3 then value assign should be "use1,2,3"

and same when user doesn't selects any check boxes values assigned should be null

How can i acheive that above?

regards,

Max

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Your name seems to have changed again (it was Thomas yesterday). Anyway, this seems somewhat similar to a previous post of yours. I essentially use the same approach I explained in my reply here.

    toggle_Entry=hiCreateToggleField(
      ?name 'toggle_Entry
      ?choices list(list('aa "test1") list('bb "test2") list('cc "test3"))
      ?value list(nil nil nil) 
      ?callback list("CCFupdatePathEnter(hiGetCurrentForm())")
    )
    
    procedure(CCFupdatePathEnter(form)
      let((listOfStrings)
        listOfStrings=
          setof(elem 
            foreach(mapcar (toggle data) form->toggle_Entry->value 
              list("1" "2" "3") toggle && data)
            elem
          )
        if(listOfStrings then
          form->path_enter->value=strcat("use " buildString(listOfStrings ","))
        else
          form->path_enter->value=""
        )
      )
    )
    
    path_enter=hiCreateStringField(
      ?name 'path_enter
    ; commented out so can see what is going on
    ;  ?invisible t  
    )
    
    hiCreateLayoutForm(
      'ForumForm
      "Forum test"
      hiCreateFormLayout(
        'lay
        ?items list(toggle_Entry path_enter)
      )
    )
    hiDisplayForm(ForumForm)
    

    Regards,

    Georgina

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • saurabh96
    saurabh96 over 3 years ago in reply to Andrew Beckett

    Thanks Georgina,

    Max is my byname.

    Thanks for guidance!!

    • 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