no data is written to the collection / в коллекцию не записываются данные

Is this field connected to a dataset? If so, you need to use the setFieldValue() function.