Foren
How to get organization phone numbers
George Rempousis, geändert vor 11 Jahren.
How to get organization phone numbers
New Member Beiträge: 7 Beitrittsdatum: 28.01.13 Neueste Beiträge
Hi,
I'm new to Liferay and I'm trying to get the organization information from an organization object, on velocity
I can get the address/addresses with the $org.getAddress() / $org.getAddresses()
but I cannot find a method in the organization object that returns phone numbers.
Is there some way I can retieve them?
Thanks
I'm new to Liferay and I'm trying to get the organization information from an organization object, on velocity
I can get the address/addresses with the $org.getAddress() / $org.getAddresses()
but I cannot find a method in the organization object that returns phone numbers.
Is there some way I can retieve them?
Thanks
Gnaniyar Zubair, geändert vor 11 Jahren.
RE: How to get organization phone numbers (Antwort)
Liferay Master Beiträge: 722 Beitrittsdatum: 19.12.07 Neueste Beiträge
Hi,
You cannot get the phone number details from organization object. It is stored in Phone model.
So Please use this :
HTH
- Gnaniyar Zubair
You cannot get the phone number details from organization object. It is stored in Phone model.
So Please use this :
PhoneLocalServiceUtil.getPhones(companyId,"com.liferay.portal.model.Organization",organizationId);
HTH
- Gnaniyar Zubair
George Rempousis, geändert vor 11 Jahren.
RE: How to get organization phone numbers
New Member Beiträge: 7 Beitrittsdatum: 28.01.13 Neueste Beiträge
Thanks that worked perfectly.