• 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. Not getting correct directory path via browse button

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 8677
  • 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

Not getting correct directory path via browse button

saurabh96
saurabh96 over 3 years ago

Hello Everyone, greetings,

I am using below skill code-

path_enter=hiCreateStringField(
?name 'path_enter
?defValue "/xyz/cadence-/2021.12.28"
)

Entry=hiCreateButton(
?name 'Entry
?buttonText "Browse..."
?callback "FileDialog(hiGetCurrentForm())"
)

procedure(FileDialogCB(dialog event formName)
let(((form symeval(formName)))
when(event=='done
form->path_enter->value=car(hiFileDialogSelection(dialog))
)
)
)

procedure(FileDialog(form)
hiDisplayFileDialog(
?dialogName 'MyFileSelect
?mode 'directoryOnly
?callback "FileDialogCB"
?userData form->hiFormSym
)
)

the issue am getting when am pressing browse button it is showing the directories present in pwd(working area) not in path mentioned in string box ..i.e  /xyz/cadence-/2021.12.28.
what's the error and how to fix that when i press browse button it should show directories present in path string?

Regards,
Thomas

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Try reading the documentation for the hiDisplayFileDialog. You'll see there's a ?workingDir argument, so just adding this to the hiDisplayFileDialog call within FileDialogCB will fix this:

    ?workingDir form->path_enter->value

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • saurabh96
    saurabh96 over 3 years ago in reply to Andrew Beckett

    Thanks !

    • 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