Built in functions getFieldNames() & getFieldValue() could be improved!

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:
  1. map forms.fieldValues(int recID)
  2. {
  3.       record = Form[ID = input.recID];
  4.       counter = 0;
  5.       myMap = Map();
  6.       for each line in record.Sub_Form
  7.       {
  8.             counter = counter + 1;
  9.             fields = line.getFieldNames();
  10.             for each field in fields
  11.             {
  12.                   myMap.put(field + " - " + counter, getFieldValue("field"));
  13.             }
  14.       }
  15.       return myMap;
  16. }
Thanks,
Damien Cregan
Hire an Expert