Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5066

How to auto-populate Real path in string using different radio button

$
0
0

Hey...I have created two radio button, i.e. chk1 and chk2...how can we do that if I select button chk2 - then it will populate/visible the real path of file ABC.il, i.e. ~/x/abc.il into the string field, And if I select button chk1, the string will show the real path of xyz.il i.e ~/q/xyz.il.
How can we implement this using skill..pls guide me?

net= hiCreateStringField(
?name 'net
?prompt "Enter Netlist Path"
?value ""
)

button_net_data = hiCreateButton(
?name 'button_net_data
?buttonText "Browse"
?callback "ddsFileBrowseCB(hiGetCurrentForm() 'net \"\" 'fileOnly)"
)


netlists=hiCreateRadioField(
?name 'netlists
?prompt ""
?choices list("chk1" "chk2")
?value "chk2"
?enabled t
; no idea how this was supposed to work - it's a random set of values!
;?callback list("(hiSetFieldEnabled() 'netlists 'net '(t nil ) ;;)"
?callback list("MyEnableFields(hiGetCurrentForm())")
)

procedure(MyEnableFields(form)
let((netEnabled)
case(form->netlists->value
("chk2"
getWorkingDir()=nil
)
("chk1"
getWorkingDir()=t
)
)

)
)

hiCreateAppForm(?name 'forum86 ?fields list(net button_net_data netlists))
MyEnableFields(forum86)
hiDisplayForm(forum86)


Viewing all articles
Browse latest Browse all 5066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>