Home > Community > Forums > Custom IC SKILL > Skill Callback Order

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Skill Callback Order 

Last post Tue, Jul 31 2012 1:21 AM by Andrew Beckett. 7 replies.
Started by skillseeker 27 Jul 2012 01:54 PM. Topic has 7 replies and 1991 views
Page 1 of 1 (8 items)
Sort Posts:
  • Fri, Jul 27 2012 1:54 PM

    Skill Callback Order Reply

    Hello

    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,..

     

    Thanks

     

    • Post Points: 20
  • Fri, Jul 27 2012 2:32 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,576
    • Points 15,725
    Re: Skill Callback Order Reply

    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.

    Regards,

    Lawrence.

    • Post Points: 5
  • Fri, Jul 27 2012 2:51 PM

    RE: Skill Callback Order Reply
    Hi skillUser,

    This will not work for me as I am using “hiCreateButtonBoxField”. This will not accept this sort of syntax…

    Thanks
    Devender Poreddy
    • Post Points: 20
  • Mon, Jul 30 2012 12:28 PM

    Re: RE: Skill Callback Order Reply

    Devendra,

    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.

    Regards,

    Andrew.

    • Post Points: 5
  • Mon, Jul 30 2012 12:32 PM

    RE: RE: Skill Callback Order Reply
    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
    Devender Poreddy
    • Post Points: 20
  • Mon, Jul 30 2012 12:45 PM

    Re: RE: RE: Skill Callback Order Reply

    Devender,

    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.

    Regards,

    Andrew.

     

    • Post Points: 5
  • Mon, Jul 30 2012 2:52 PM

    RE: RE: RE: Skill Callback Order Reply
    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      " "

          ) ; hiCreateButtonBoxField


    Thanks

    Devender Poreddy
    • Post Points: 20
  • Tue, Jul 31 2012 1:21 AM

    Re: RE: RE: RE: Skill Callback Order Reply

    Devender,

    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.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (8 items)
Sort Posts:
Started by skillseeker at 27 Jul 2012 01:54 PM. Topic has 7 replies.