How can i controll the skill callback order...
?callback list("funcA funB funcC").....
I want funcA to execute first and then funcB and so on,..
Hi SKILLseeker ,
You have the right sort of idea, though the callback probably needs to be a single string (this depends on what it is a callback for, some will accept a list, but the meaning is different, then you are supplying OK, Cancel ... callbacks). Something like this then:
?callback "funcA() funB() funcC()"
I hope this helps you.
Hi skillUser,This will not work for me as I am using “hiCreateButtonBoxField”. This will not accept this sort of syntax…Thanks
In reply to skillseeker:
If there are (say) two buttons in your button box, it would be:
?callback list("funcA() funcB() funcC()" "funcD() funcE() funcF()")
When the first button is pressed, it will execute funcA(), then funcB(), then funcC(), and when the second button is pressed - well, I'm sure you can guess. All that you'd done is built a sequence of functions to be executed.
Andrew,I only have one button which will populate three boxes and once that is populated I need the second function to execute. Is it possible to achieve this. If so could you provide me with an example..Thanks
I have no idea what you mean. If you only have a single button, why are you using a button box? I think you're going to have to give some pictures and your code so far to stand any chance of understanding what you're trying to do.
Andrew,Please find the attached picture… What I want is when I hit the “Browse To Select TOP Cell” to select “library cell and view” it should run a routine on the selected cell view to extract the hierarchy. I have a separate function called “Extract Hierarchy” which is part of the callback list like shown below… LayoutBrowse= hiCreateButtonBoxField( ?name 'LayoutBrowse ?choices list( "Browse To Select TOP Cell" ) ?callback list( "ddsSyncWithForm( eval(CCStabForm->tabField->page3) 'browse 'LayoutLib 'LayoutCell 'LayoutView ) ExtractHierarchy()" ) ?prompt " " ) ; hiCreateButtonBoxFieldThanks
I don't think it really makes sense to call the ExtractHierarchy() after ddsSyncWithForm(...). It would be better to have callbacks on the lib, cell and view name fields, where the callback would check that all three are filled out and then call the ExtractHierarchy. Otherwise the callback would be invoked when the library browser had been invoked, and not when the user had chosen a lib/cell/view.
The benefit of doing it as callbacks on the lib/cell/view fields would be that it also triggers if you type in the lib/cell/view names.