webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

how to invoke Custom Script from other javascript?? to reuse a script

  • 1.  how to invoke Custom Script from other javascript?? to reuse a script

    Posted Thu October 08, 2015 11:15 AM

    how to invoke Custom Script from other javascript

    example:
    invoque custom script from “onclick” of command button

    CAF.model(‘#{activePageBean.clientIds[‘idOfCustomScript’]}’).raise();------- not work

    this is to reuse a script

    thanks!


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: how to invoke Custom Script from other javascript?? to reuse a script

    Posted Thu October 08, 2015 08:00 PM

    The various ‘Script’ controls do not have a client-side model that you can reference by id.

    If you want to re-use javascript functions, you would want to define those functions in either an external javascript file or in the value of a ‘Script Block’ control and just reference those shared functions by name wherever they are needed.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine