Collection attribute default value erratic behaviour
I have set up a collection with several attributes, one of wich I need to be automatically filled with a default value.
So the default-value-filled attribute has the following script as Default Value property:
The problem is when adding records to the collection, the last record added has an empty value in this attribute.
Surpisingly, when I add another row, the previous empty attribute gets filled correctly, but the last added one is always empty.
Am I doing anything wrong? Does anyone know a workaround?
Thank you very much in advance.