edit method
Implementation
bool edit(fieldname, value) {
bool r1 = false;
_frm!.pages!.forEach((p) {
p.sections.forEach((s) {
s.cols.forEach((c) {
c.rows.forEach((r) {
r.fields.forEach((f) {
if (f.fieldName == fieldname) {
f.value = value;
r1 = true;
}
});
});
});
});
});
if (_frm!.fields!.length > 0) {
try {
_frm!.fields!
.firstWhere((f) => f.fieldName == fieldname, orElse: null)
.controller
?.text = value;
} catch (e) {}
}
return r1;
}