After upgrading to the Aviarc 3.6.0 we are getting the mentioned error on one of the screens.
The part of the screen which raises an error:
<custom:record-table bottom="40" width="100%" left="0" top="0" dataset="account-ds" class="list" name="accountlist-rc" >
<column width="0" display-field="AccountName" header="Accounts" field2="AccountCode" allow-sort="n" />
</custom:record-table>
Note that we customized the record-table widget to allow for 2 additional fields to be specified for each column (field2 and field3), so this is where field2 in the column comes from.
After investigating the changes done to allow for more than 1 field to be specified for each column of the record table were looking as follows (in the update method of the RecordTable.js, starting from line 670):
Since the column specification on the screen (code snippet in the question) does not set any value to field3 attribute the part
was failing and throwing an error. Method getFieldObject always expects the value to be passed, even though it should probably be smart enough to cater for null/undefined values as well.
To solve the problem the code was refactored as follows:
After that the custom part of the widget code simply needs to cater for possible undefined values of text2 and text3 attributes.