Fórum

Accessing Metadata Set Values Programmatically

thumbnail
Mitarth Vaid, modificado 6 Anos atrás.

Accessing Metadata Set Values Programmatically

New Member Postagens: 2 Data de Entrada: 13/06/17 Postagens Recentes
Hi Everyone ! I am currently working on Liferay 7 Documents and Media Portlet. I have created a custom Document Type and associated a custom Metadata set with it. Now I want to access the metadata field values. For that there are two functions provided in Liferay. StorageEngineManagerUtil.getDDMFormValues(classPK);
StorageEngineManagerUtil.getDDMFormValues(ddmStructure.getStructureId(), fieldNamespace, serviceContext);

I am able to access the metadata Values using function 1 but I want to access all the metadata sets associated with the file and I am not able to use function 2 as I don't know what is fieldNamespace and serviceContext. Please help.
thumbnail
Jorge Díaz, modificado 6 Anos atrás.

RE: Accessing Metadata Set Values Programmatically

Liferay Master Postagens: 753 Data de Entrada: 09/01/14 Postagens Recentes
Hi Mitarth,

See this post that I have just write today: https://web.liferay.com/community/forums/-/message_boards/message/90731161