view method
String
view(
- dynamic fieldname, {
- int mode = 0,
})
Implementation
String view(fieldname, {int mode = 0}) {
String? r1 = '';
if (_frm!.fields!.where((f) => f.fieldName == fieldname).toList().length >
0 &&
_frm!.fields!
.where((f) => f.fieldName == fieldname)
.toList()[0]
.boxType ==
'autosuggestBox' &&
mode == 1) {
r1 = _frm!.fields!
.where((f) => f.fieldName == fieldname)
.toList()[0]
.combovalue;
} else if (_frm != null &&
_frm!.fields!.where((f) => f.fieldName == fieldname).length > 0)
r1 = _frm!.fields!
.firstWhere((f) => f.fieldName == fieldname, orElse: null)
.controller!
.value
.text;
return r1!;
}