Gentlemen,
I need to uncheck items in a List View.
From the frappe source I clobbered together this promising code, but I’m stuck because I can’t figure out how to initailize $wrapper the right way:
function set_rows_as_unchecked() {
alert("set_rows_as_unchecked");
$results = $wrapper.find('.results');
this.$checks = this.$result.find(".list-row-checkbox:checked");
$.each(this.$checks, (i, el) => {
let docname = $(el).attr("data-name");
this.$result
.find(`.list-row-checkbox[data-name='${docname}']`)
.prop("checked", false);
});
}
Please assist.