Created
November 23, 2018 16:09
-
-
Save jverweijL/11372093bf2280f6a2a68f6675923976 to your computer and use it in GitHub Desktop.
Example how you can get an overview of data filled into a form for a specific user.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#assign companyId = themeDisplay.getCompanyId()/> | |
| <#assign groupId = themeDisplay.getScopeGroupId()/> | |
| <#assign userId = themeDisplay.getRealUserId() /> | |
| <#assign locale = themeDisplay.getLocale() /> | |
| <#assign ddlService = serviceLocator.findService('com.liferay.dynamic.data.lists.service.DDLRecordLocalService') /> | |
| ${companyId} | |
| ${groupId} | |
| ${themeDisplay.getRealUserId()} | |
| ${locale} | |
| <#assign ddlLists = ddlService.getDDLRecords( 0, 1000)/> | |
| <#list ddlLists as ddlList> | |
| <#if ddlList.getUserId() == userId && ddlList.getGroupId() == groupId> | |
| <#assign ddmFormFieldValues = ddlList.getDDMFormFieldValues("ChangingAndImproving")/> | |
| <#list ddmFormFieldValues as ddmFormFieldValue> | |
| ${ddmFormFieldValue.getName()} | |
| </#list> | |
| </#if> | |
| </#list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment