Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5168

Not getting correct directory path via browse button

$
0
0

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


Viewing all articles
Browse latest Browse all 5168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>