• 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. Help on using ddsFileBrowseCB

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 145
  • Views 15107
  • 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

Help on using ddsFileBrowseCB

LeJonT
LeJonT over 15 years ago

Hi,

I was exploring the code below to add file browse option, which I got from a solution here in this forum.

procedure( fileBrowser()
  let( ( field browseBtn )
    field = hiCreateStringField( ?name 'filename)
    browseBtn = hiCreateFormButton(
      ?name 'browseBtn
      ?buttonText "Browse..."
      ?callback "ddsFileBrowseCB( hiGetCurrentForm() 'filename \"\" 'directory )"
    )

    hiCreateAppForm(
      ?name    'CCSfileBrowserForm
      ?formTitle "Example Form"
      ?callback    ""
      ?fields    list(field browseBtn)
    )
    hiDisplayForm(CCSfileBrowserForm)
  )
)

As per the documentation, the specific function has this option:

s_mode : The selection mode specified as a symbol with the following choices:
 'anyFile: selection is any file, whether it exists or not
 'existingFile: selection is a single file (default)
 'directory: selection must be a directory where both files and directories are displayed
 'directoryOnly: selection must be a directory where only directories are displayed
 'existingFiles: selection consists of zero or more existing files

But, none of these options are working for me. Irrespective of the option, the file browse window shows all the files and folders. Is there anything wrong with my approach? Is there anything wrong with the filer I'm using which is simply blank?

I'm using icfb 5.1.0.

Regds,
Leo

  • Cancel
Parents
  • skillUser
    skillUser over 14 years ago

     Hi Zfeng,

    Again, the function name is ddsFileBrowseCB() (no "r" after Browse). I think that this function was introduced in the USR4 release of IC5141, so if you cannot see it, you must be using an older release than this.  I recommend upgrading your installation since USR4 is very old indeed.  If you cannot do this, you will probably have to write the file browser in SKILL.  There may be pre-existing examples of this.

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 14 years ago

     Hi Zfeng,

    Again, the function name is ddsFileBrowseCB() (no "r" after Browse). I think that this function was introduced in the USR4 release of IC5141, so if you cannot see it, you must be using an older release than this.  I recommend upgrading your installation since USR4 is very old indeed.  If you cannot do this, you will probably have to write the file browser in SKILL.  There may be pre-existing examples of this.

    Best regards,

    Lawrence.

    • 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