• 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. GUI: How to change the default value of a field depending...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 14267
  • 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

GUI: How to change the default value of a field depending on options selected in the same form.

Neeraj Vardhan
Neeraj Vardhan over 12 years ago

Hi,

I wanted my default field value to change, when i change one of my other field options.

For Ex: if i have two fields one of radio(ex vdd option --- 1v ... 2v .. 3v) and other of float. I want my float field to change its default values depending upon vdd option selected from radio field.

Regards

Neeraj  

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    procedure(CCFvddCallback(form)
        form->float->value=
            case(form->vdd->value
                ("1v" 1.0)
                ("2v" 2.0)
                ("3v" 3.0)
            )
        )
    
    procedure(CCFcreateVddForm()
        hiCreateAppForm(?name 'CCFvddForm
            ?formTitle "Forum Example"
            ?fields list(
                list(
                    hiCreateRadioField(
                        ?name 'vdd 
                        ?choices '("1v" "2v" "3v")
                        ?prompt "vdd"
                        ?defValue "1v"
                        ?callback list("CCFvddCallback(hiGetCurrentForm())")
                    )
                    0:0 300:30 100
                )
                list(
                    hiCreateFloatField(
                        ?name 'float
                        ?prompt "float"
                        ?defValue 1.0
                    )
                    0:30 300:30 100
                )
            )
            ?attachmentList list(
                hicLeftPositionSet|hicRightPositionSet
                hicLeftPositionSet|hicRightPositionSet
            )
            ?initialSize 300:60
        )
    )
    
    procedure(CCFvddForm()
        unless(boundp('CCFvddForm)
            CCFcreateVddForm()
        )
        hiDisplayForm(CCFvddForm)
    )

     

    • 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