Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Muhammed Shafeek V
Liferay Custom Fields
6 février 2014 05:07
Réponse

Muhammed Shafeek V

Rang: Regular Member

Publications: 133

Date d'inscription: 21 juillet 2013

Publications Récentes

Hi,

How add data into custom field in document table?
Actually my document have two custom fields(location and summary) ,And I want to add data programmatically to this field while I am creating or uploading documents.
I can able to upload an image into document and media portlet programmattically by using the code:-
DLAppLocalServiceUtil.addFileEntry(
themeDisplay.getUserId(), repositoryId,
tempUploadedImageFolder.getFolderId(),
tempImageFileName, MimeTypesUtil.getContentType(file),
tempImageFileName, "TEMP FILE FOR PICTURE", "BRAND NEW",
file, serviceContext);


It's working fine too.

Now I want to add custom field into document and display portlet. I don't know how to do this, please help me.

hopefully ,

Shafeek.
Neil Griffin
RE: Liferay Custom Fields
6 février 2014 08:33
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2365

Date d'inscription: 26 juillet 2005

Publications Récentes

Hi Shafeek,

We have an example of custom fields like "companyName" and "favoriteColor" in the jsf2-registration-portlet.

See: UserExpando.java and RegistrantServiceUtil.updateExpandos(long companyId, Registrant registrant)

Kind Regards,

Neil
Muhammed Shafeek V
RE: Liferay Custom Fields
6 février 2014 21:03
Réponse

Muhammed Shafeek V

Rang: Regular Member

Publications: 133

Date d'inscription: 21 juillet 2013

Publications Récentes

Hi Neil,
Thank you, Its working for me,

shafeek.
Neil Griffin
RE: Liferay Custom Fields
10 février 2014 08:54
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2365

Date d'inscription: 26 juillet 2005

Publications Récentes

You are very welcome Shafeek. I'm glad it is working for you now emoticon