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
  • 1.  Radio Group Item Label

    Posted Wed September 19, 2012 07:25 AM

    Hi,

    I’m trying to read a radio group item’s label using the CAF Javascript API but it doesn’t seem to work.
    I created a new portlet having only the radio group control and the below javascript on the Change Client-Side event.

    var radioGroupModel = CAF.model("#{caf:cid('radio')}");    
    var itemIndex = radioGroupModel.indexOf('value2');
    var item = radioGroupModel.get(itemIndex);
    var itemModel = CAF.model(item);
    alert(itemModel.getLabel() + ': ' + itemModel.getValue());

    The alert prints the following:


    label2

    As anyone ever faced with this problem?
    Thanks
    Bruno


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