Forums de discussion
Liferay Custom Fields
Muhammed Shafeek V, modifié il y a 10 années.
Liferay Custom Fields
Regular Member Publications: 140 Date d'inscription: 22/07/13 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:-
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.
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, modifié il y a 10 années.
RE: Liferay Custom Fields
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 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
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, modifié il y a 10 années.
RE: Liferay Custom Fields
Regular Member Publications: 140 Date d'inscription: 22/07/13 Publications récentes
Hi Neil,
Thank you, Its working for me,
shafeek.
Thank you, Its working for me,
shafeek.
Neil Griffin, modifié il y a 10 années.
RE: Liferay Custom Fields
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
You are very welcome Shafeek. I'm glad it is working for you now