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

how to perform callback from browse button

$
0
0

Hi there,

i have made a string box and browse button

path_enter=hiCreateStringField(
?name 'path_enter
?defValue "/xyz/cadence/2022.12.22"

)

browse_Entry=hiCreateButton(
?name 'browse_Entry
?buttonText "Browse..."
?callback "ddsFileBrowseCB(hiGetCurrentForm() 'path_enter \"\" 'directoryOnly)"
?callback "PathCB(hiGetCurrentForm())")

procedure(PathCB(form)
case(form->Entry->value
("Test"
unless(boundp('MyInCallback) && MyInCallback
let((pat (MyInCallback t))
pat=pcreCompile("/[^/]*/[^/]*/[^/]*/[^/]*")
form->path_enter->value=strcat("/xyz/cadence" pcreReplace(pat form->path_enter->value "" 1))
)
)
)
)
)

I want that above procedure (PathCB(form) only works when i press the browse button

so how can we use two callbacks one for directory surfing and other for procedure calling using browse button.

Please guide.
Thanks in advance.


Viewing all articles
Browse latest Browse all 5067

Trending Articles



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