Forums de discussion
Expando/Custom Attribute Questions
David Corpuz, modifié il y a 8 années.
Expando/Custom Attribute Questions
New Member Publications: 8 Date d'inscription: 23/07/12 Publications récentes
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, modifié il y a 8 années.
RE: Expando/Custom Attribute Questions
Liferay Legend Publications: 1399 Date d'inscription: 17/09/10 Publications récentes
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).