Built in functions getFieldNames() & getFieldValue() could be improved!
Hi,
Would be nice to see both these functions improved to handle
sub-forms, also the ability to use within custom functions.
Like this would be awesome:
- map
forms.fieldValues(int recID)
- {
- record
= Form[ID = input.recID];
- counter
= 0;
- myMap
= Map();
- for
each line in record.Sub_Form
- {
-
counter = counter + 1;
-
fields = line.getFieldNames();
-
for each field in fields
-
{
-
myMap.put(field + " - " + counter, getFieldValue("field"));
-
}
-
}
-
return myMap;
- }
Thanks,