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.