Fórum
Add Address to new Organization
Camilla M., modificado 13 Anos atrás.
Add Address to new Organization
New Member Postagens: 3 Data de Entrada: 09/10/10 Postagens Recentes
Hi,
i'm trying to add a new Organization with corresponding Address etc. using:
OrganizationServiceUtil.addOrganization(
parentOrganizationId, name, type, recursable, regionId,
countryId, statusId, comments, addresses, emailAddresses,
orgLabors, phones, websites, serviceContext);
For example for adding the given Address to the "addresses"-List above I tried:
Address address = new AddressImpl();
address.setCity("example_city");
List<Address> addresses = new ArrayList<Address>();
addresses.add(address);
Which ends up in compilation "class AddressImpl(): cannot find symbol"- Errors while building the containing portlet.
What is a proper way to add an Address to an Organization in this case?
Many thanks!
Camilla
i'm trying to add a new Organization with corresponding Address etc. using:
OrganizationServiceUtil.addOrganization(
parentOrganizationId, name, type, recursable, regionId,
countryId, statusId, comments, addresses, emailAddresses,
orgLabors, phones, websites, serviceContext);
For example for adding the given Address to the "addresses"-List above I tried:
Address address = new AddressImpl();
address.setCity("example_city");
List<Address> addresses = new ArrayList<Address>();
addresses.add(address);
Which ends up in compilation "class AddressImpl(): cannot find symbol"- Errors while building the containing portlet.
What is a proper way to add an Address to an Organization in this case?
Many thanks!
Camilla