problem description
list binds data components to loop out three messages, all of which have a separate checkbox, placed under the same level div of checkbox, and list. How to use checkbox under div to achieve all / deselect functions. There is no way to get the data length in list by using this.comp.
the environmental background of the problems and what methods you have tried
bex5_V3.8 development tools
related codes
/ / Please paste the code text below (do not replace the code with pictures)
var ckAll=this.comp ("checkAll");
var ck=this.comp ("checkbox");
if (ckAll.checkedValue=1) {
for(var i=0;i<ck.length;iPP)
ck[i].checkedValue=true;
} else if (ckAll.checkedValue=0) {
for(var j=0;j<ck.length;jPP)
ck[j].checkedValue=false;
}
what result do you expect? What is the error message actually seen?
when you click on the checkbox component of the checkAll name, you can change all the traversed checkbox on the page to the selected state