Foren
Custom Field Types
David Proba, geändert vor 12 Jahren.
Custom Field Types
Junior Member Beiträge: 48 Beitrittsdatum: 27.06.11 Neueste Beiträge
Hey,
just a question about custom field types...
When you add a custom field in API you call for example
expandoBridge.addAttribute("test",ExpandoColumnConstants.STRING);
There is a hand full of primitive and array constants defined, what about liferay classes like address or user.
Isn't it possible to add a custom field which is an address or a user or any other liferay class ?
Regards
just a question about custom field types...
When you add a custom field in API you call for example
expandoBridge.addAttribute("test",ExpandoColumnConstants.STRING);
There is a hand full of primitive and array constants defined, what about liferay classes like address or user.
Isn't it possible to add a custom field which is an address or a user or any other liferay class ?
Regards
Shagul Khajamohideen, geändert vor 12 Jahren.
RE: Custom Field Types
Liferay Master Beiträge: 758 Beitrittsdatum: 27.09.07 Neueste Beiträge
You could possibly store the reference to the user or address by storing the ID as a custom field.
David Proba, geändert vor 12 Jahren.
RE: Custom Field Types
Junior Member Beiträge: 48 Beitrittsdatum: 27.06.11 Neueste Beiträge
sure,
i should have thought about that... :-)
anyway,
thx
i should have thought about that... :-)
anyway,
thx