Un foro de discusión para nuestra comunidad de hispano hablante
By diegoesolutions
#779550
Necesito saber si puedo hacer un checkbox que seleccione todos los demás, el checkbox debe seleccionar todos los otros que son parte de una grilla.
Si se pudiera hacer, les pido que me enseñen como hacerlo.
Muchas gracias.
By marcoramirez
#779553
Hola diegoesolutions,

Bueno la respusta esta en JavaScript, puedes revisar la documentaion aqui:
http://wiki.processmaker.com/index.php/ ... _Functions
http://wiki.processmaker.com/index.php/ ... _Functions

sin enbargo un ejemplo, o por lo menos para que tengas una pequeña idea:
Code: Select all
function CheckAll() {
  var tot = Number_Rows_Grid("gridtest", "value1");
    if(getGridField("gridtest",1,"check1").checked){
      if(tot>1){
        for (var i = 1; i <= tot; i++) {
          getGridField("gridtest",i,"check1").checked=true;
        }
      }
    }
    else{
      for (var i = 1; i <= tot; i++) {
          getGridField("gridtest",i,"check1").checked=false;
        }
    }
    return true; //return true so the submit action will continue
 }


var dynaformOnload = function(){
 leimnud.event.add(getGridField("gridtest",1,"check1"), 'click', CheckAll);
}
Ojala que te sirva.

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]