var a = this.getValue(); var status = contentPane.getWidgetsByName("status"); if(status.length>0){ $.each(status,function(i,item){ var cell = item.options.location; if(a.length==0){ item.reset(); } contentPane.setCellValue(cell,null,a); }) }else{ contentPane.setCellValue("B2",null,a); if(a.length==0){ contentPane.getWidgetByName("status").reset(); } } |