user name as default value to an attribute

0
I am designing an application where i want to give the user name as the name for an attribute how to give it as default in domain model while creating the attribute?
asked
2 answers
0

Hi Padhi, 

you have to add custom logic, via e.g. a microflow, to copy the username to the target object’s attribute. 
It is not possible to define this logic via default value definition in the domain model.

Edit:

In addition, your question implies, that you want to use the username as name of an attribute, which is not possible as Mendix does not support dynamic attribute naming.

answered
0

Could you just set it on creation using the value from $currentUser/Name?

answered