IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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

CAF clientside scripting code in a seperate .js file

  • 1.  CAF clientside scripting code in a seperate .js file

    Posted Tue December 13, 2011 07:36 AM

    hi All,

    Is it possible to write CAF clientside scripting code in a seperate .js file and import in .view files?

    Tried getting CAF object from the method CAF.model in a seperate .js file as below and imported this .js file at the bottom of .view file (after loading ‘myComponent’ in .view file) But it is not able to identify component ‘myComponent’ at line 1.

    var componentObj = CAF.model ('#{activePageBean.clientIds["myComponent"]}');
    componentObj .getValue();

    Could you please give inputs on using CAF clientside scripting in .js file?

    Kind regards,
    Raja sekhar Kintali


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


  • 2.  RE: CAF clientside scripting code in a seperate .js file

    Posted Tue December 13, 2011 08:18 AM

    Include Script properties:> “Evaluate”: true

    Good coding.


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


  • 3.  RE: CAF clientside scripting code in a seperate .js file

    Posted Wed December 14, 2011 08:08 AM

    hi Gerardo,

    Thanks for your response. It is working now.

    Kind regards,
    Raja sekhar Kintali


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