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
  • 1.  Create CAF.Output.Model Object

    Posted Wed August 08, 2012 11:36 AM

    Hi ,
    I am not able to create a new CAF client side object.

    var elem1 = new CAF.Output.Model ("ss","dd");
    if(elem1 == null){
    Logger.warn("elem1 is null1" );
    }else{
    Logger.warn("elem1 is not null1" );
    }
    
    Logger.warn("2" + elem1.isVisible());

    It is displaying “elem1 is not null1”, but when I try to call any method on that object as mentioned in the DOC
    at [url]http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_ga/My_webMethods/8-2-SP1_CAF_JavaScript_Reference/CAF.Output.Model.html[/url]

    I get the following error:
    Timestamp: 8/8/2012 6:58:55 PM
    Error: $(element) is null
    Source File: http://localhost:8585/ui/dyn/general.js?l=en_US&v=120808185846
    Line: 1357

    Please help !!


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


  • 2.  RE: Create CAF.Output.Model Object

    Posted Wed August 08, 2012 01:27 PM

    I would recommend just getting the model by using the CAF.model(id) function.

    See:
    [url]http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_sp2/My_webMethods/8-2-SP1_CAF_JavaScript_Reference/CAF.html#!s!model[/url]

    For example:

    
    var elem1 = CAF.model("jsfwmp6326:defaultForm:panel_id");
    if(elem1 == null){
    Logger.warn("elem1 is null1" );
    }else{
    Logger.warn("elem1 is not null1" );
    }
    
    Logger.warn("2" + elem1.isVisible());

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