Forums de discussion

Expando (Custom Filed Value) in JSON web services

thumbnail
subhash lamba, modifié il y a 10 années.

Expando (Custom Filed Value) in JSON web services

Regular Member Publications: 136 Date d'inscription: 07/07/13 Publications récentes
I add on Expando filed from controller panel in documents and media.
it working wel but the problem is that when i return that object in JSON web service that time expando fileds not avaliable in JSON responce.
How can i achive this?

@JSONWebService
public DLFileEntry addSharedDLFileEntry(long userId,long dlFileId) throws SystemException, PortalException
{
DLFileEntry dlFileEntry=DLFileEntryLocalServiceUtil.getDLFileEntry(dlFileId);
dlFileEntry.setDescription("shared");



String customfiled= (String) dlFileEntry.getFileVersion().getExpandoBridge().getAttribute("Shared");
System.out.print("This is customer fileds "+customfiled);

DLFileEntryLocalServiceUtil.updateDLFileEntry(dlFileEntry);
return dlFileEntry;
}
thumbnail
Kan Zhang, modifié il y a 10 années.

RE: Expando (Custom Filed Value) in JSON web services

Junior Member Publications: 68 Date d'inscription: 01/12/10 Publications récentes
You may want to change the permission on the expando attribute to make it viewable by guest.

-Kan