Good afternoon, colleagues.
Actually, the subj.
There is: Form of working time table editing, 31 fields with values.
Task: Summarize values without spaghetti code (there are still conditions).
Made by:
var fields = form.getComponents();
for (Component field : fields) {
if (field.getId().contains("day")) {
code...
}
}
allows to select the fields I want.
Question: How to get the values entered into these fields?
Sincerely yours, Alex.