• 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. Error on creating form

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 11830
  • 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

Error on creating form

MollyMeow
MollyMeow over 4 years ago

Hi,


I used a skll CreateMultiLabel
but is not work

...

hiCreateCyclicField(

?name 'spFieldDirection

?prompt "Direction"

?defValue "Vertical"

?choices list("Vertical" "Horizontal")

)

...

CIW output error message:

Field is “spFieldDirection”
Error * hiCreateCyclicField : value must be contained within the list of choices

If anyone know the solution/fix for this problem, please let me know..

(use 5141)

reguards,

Molly

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

    Hi Molly,

    I just tried that in IC5141, and it worked fine (I'm using sub-version 5.10.41.500.6.151):

    hiCreateAppForm(?name 'MyForm ?fields
      list(hiCreateCyclicField(
        ?name 'spFieldDirection
        ?prompt "Direction"
        ?defValue "Vertical"
        ?choices list("Vertical" "Horizontal")
      )
    )

    hiDisplayForm(MyForm)

    I did wonder whether you might need to use ?value as well, but if not specified it should default to ?defValue.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • MollyMeow
    MollyMeow over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    It work! but I got new error ...

    *Error* dbCreateLabbel : argument #5 shourld be a string ( type template = "dglttttn")  -nil

    *Error* load : error while loading file - "*loadstring"

    but in skill #5 is string already

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

    dbCreateLabel( cv LswEntryLayer ptsLabel Text Justification Rotation FontName FontSize)

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

    #5  I think is Justification (if I'm wrong please correct thanks)

    all argument are String type 

    so I really confuse...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to MollyMeow

    Well, if that's your code, and Justification is a variable, presumably it is nil and not a string (should be something like "lowerLeft" or "centerRight").

    There's not enough information in your post to identify the error, since you only included one line and didn't show how the variables in the arguments are set.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MollyMeow
    MollyMeow over 4 years ago in reply to Andrew Beckett
    I am not sure if it is a version issue
    Other users can use this code..


    Molly
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • MollyMeow
    MollyMeow over 4 years ago in reply to Andrew Beckett
    I am not sure if it is a version issue
    Other users can use this code..


    Molly
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to MollyMeow

    Molly,

    I loaded that code in both IC618 and IC5141, and then called spHiCreateMultiLabel(). I hit F3 and filled in the form, and then clicked on the layout. It worked fine. Looking at the code, I can't see how it could fail the way you described.

    Andrew

    • 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