• 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 15105
  • 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
  • LeJonT
    LeJonT over 15 years ago

    Hi,

    Found that this issue is due to the tool version difference.

    LeJonT said:

    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

    In the tool version 5.1, only the 'anyFile and 'existsingFile options are available. Rest of them are available from 6.1 version onwards.

     -Leo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 15 years ago

    Hi Leo

    Unfortunately the problem does indeed exists on IC5141. I tested "directoryOnly" option in IC614-504 and it worked fine.

    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi LeJonT,

          I think you have resolved your problem, can you tell me where to find the function "ddsFileBrowserCB()", thanks

    Regards,

    zfeng

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi Lawrence,

         thanks, but i don't know how to check our cadence release verison, i just know that we are using ic5141, and i can't find ddsFileBrowseCB() in finder, but when i typed ddsFileBrowseCB() in CIW, it prompt that two arguments is required, so i think my cadence can recognize this function, unfortunatly, i search this function through all the documents, but i didn't find it. so if you have some example or document about this function ,can you share it with me!

    Regrads,

    zfeng

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Zfeng,

    Lawrence already referenced a solution with an example in your other post 

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • zfengINL
    zfengINL over 14 years ago

     Hi Andrew,

         I want to registe an online support account, but why it always turns up the window " the server is unavaible, try later", can you give me a link to registe online support?

    zfeng 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Hi Zfeng,

    You should just go to http://support.cadence.com and then in the "New User" section hit the "Register Now" button. I tried that, and it got onto the next page - not sure if that's the site you used, and if so, at which point it failed? If you can elaborate that, I can get somebody to check it out.

    Regards,

    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