Foren
Expando/Custom Attribute Questions
David Corpuz, geändert vor 8 Jahren.
Expando/Custom Attribute Questions
New Member Beiträge: 8 Beitrittsdatum: 23.07.12 Neueste Beiträge
Good day,
I'm currently doing some development work for Liferay and we are currently experimenting on Expando/Custom Attributes for the Users in Liferay. Here is my question.
Can a user retrieve an Expando value for a user that doesn't have a mapped expando attribute? or does it require to be mapped?
Ex :
customerID expando field has a default of 00000
User1 has customerID as an Expando Filed and is mapped to a value of 00001 while User2 doesn't have customerId custom attribute saved in the database as an Expando field
Hope someone can answer my question.
Thanks,
I'm currently doing some development work for Liferay and we are currently experimenting on Expando/Custom Attributes for the Users in Liferay. Here is my question.
Can a user retrieve an Expando value for a user that doesn't have a mapped expando attribute? or does it require to be mapped?
Ex :
customerID expando field has a default of 00000
User1 has customerID as an Expando Filed and is mapped to a value of 00001 while User2 doesn't have customerId custom attribute saved in the database as an Expando field
Hope someone can answer my question.
Thanks,
James Falkner, geändert vor 8 Jahren.
RE: Expando/Custom Attribute Questions
Liferay Legend Beiträge: 1399 Beitrittsdatum: 17.09.10 Neueste Beiträge
When you define a custom attribute for the User entity, then all users will have that custom attribute. If a specific user has not defined a value for that attribute, then the defalut value should be returned. There's no way to define a per-user attribute (only the value of the attribute can differ between users).