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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Checking if client side field exists

    Posted 02/04/10 06:58 AM

    Hi,

    Does anyone know how I can check through client side code if a field exists using CAF.Model methods? Similar to checking typeof var == undefined in JavaScript?


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


  • 2.  RE: Checking if client side field exists

    Posted 02/26/10 10:14 AM

    hi
    on the client side you can check for the existence of HTML elements via their ID. Something like:

    var myField = CAF.model('#{activePageBean.clientIds['myField']}');
    if (myField == null) {
    alert('It does not exist');
    }

    This only makes sense if you have defined this control with id “myField” in your view and toggled its rendering based on some other condition (if its value is empty, or if some other value is empty…).

    hope this helps
    Javier


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