I think you should generateKeystep one : add new recordset with this key that you generated.(other fields should be allowNull)step two : you could after that update other fields with your data that come from view layer.