• 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. Create Nested Toggle (Check) Boxes

Stats

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

Create Nested Toggle (Check) Boxes

gs748
gs748 over 10 years ago

Hello,

I am new to SKILL and would like to take your inputs on the below scenario.
I am creating a App form with Toggle (Check) Boxes for few lines in a file which are as below:

 <file lout >
Numbers
1,2,3,4,5
6,7,8,9,10
11,12,13,14,15

Characters
a,b,c,d,e
e,f,g,h,i
j,k,l,m,n

Letters
ab,cd,ef,gh,ij
kl,mn,op,qr,st


I read each line from file lout and create a Check Box for each line but if the user selects “Numbers” or “Characters” then all lines below “Numbers” or “Characters” must be checked until an empty line is read.
I have the below code which errors out with below message:

----------------------
*Error* hiCreateToggleField: each toggle item must be a list of at least it's unquoted symbol representation
*Error* load: error while loading file - "te.il"
---------------------

 Can you please help me with the error check on this code as I am not familiar with most SKILL functions . Thanks in advance.
---------------------
CODE
---------------------

procedure(readcsv(ln)
 cline=ln
 tline = substring(cline 1 strlen(cline)-1)
 pline=parseString(tline ",")
  i=length(pline)
;  printf("Length is %d\n" i)
   item8 = nth(i-1 pline)
   item7 = nth(i-2 pline)
   item6 = nth(i-3 pline)
   item5 = nth(i-4 pline)
   item4 = nth(i-5 pline)
;printf("ITEM'S 1-8:\n %L\n %L\n %L\n %L\n %L\n %L\n %L\n %L\n" item1 item2 item3 item4 item5 item6 item7 item8)
lista = list(item4 item5 item6 item7 item8)
printf("LIST ITEM'S:%L\n" lista)
lista
);end proc readcsv


port=infile("lout")
listN='()
listM='()
listNew='()
count =0
when(port
   while(gets(ln port)
        listb=readcsv(ln)
        listM = cons(listb listM)
        ;printf("ListM:%L\n" listM)
    );end while
   );end when
 close(port)

; Create Check Box

mytoggle = hiCreateToggleField(
 ?name ’toppings
 ?prompt "Toppings"
 ?choices listM
 ;?value ’( nil)
 ;?numSelect 1 )
)
hiCreateAppForm( ?name ’iceCreamForm
 ?formTitle "Ice Cream"
 ?callback "buildIceCreamCone()"
 ?fields list( mytoggle )
 ?help "cream" )
status = hiDisplayForm( iceCreamForm )

---------------------

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    You keep doing this - asking a question, and then following up an answer by stating that what you are doing is different - completely different to your original question. It rather makes me less inclined to answer your questions, because they're often somewhat vague, and then it turns out that you're doing something nothing like your question.

    The simple answer to your last question is that you cannot have checkboxes in a tree structure.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    You keep doing this - asking a question, and then following up an answer by stating that what you are doing is different - completely different to your original question. It rather makes me less inclined to answer your questions, because they're often somewhat vague, and then it turns out that you're doing something nothing like your question.

    The simple answer to your last question is that you cannot have checkboxes in a tree structure.

    Kind Regards,

    Andrew.

    • 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