Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
how to get value of "clay:dropdown-menu" in action
hi
i am using liferay 7.4, and this is my first time in clay.
i try with artical https://help.liferay.com/hc/en-us/articles/360018167451-Clay-Dropdown-Menus-and-Action-Menus
little bit diferent in 7.4, but i works anyway.
now my problem is, i do not know how to get the value in action. i tried
String[] storageLocationCheckedArray = ParamUtil.getParameterValues(actionRequest, Constant.WSM_QUERY_RECEIPT_STORAGE_LOCATION);
for (String storageLocationId : storageLocationCheckedArray) {
LOGGER.info("storageLocationId:" + storageLocationId);
storageLocationList.add(Integer.valueOf(storageLocationId));
}
and
String[] storageLocationCheckedArray2 = ParamUtil.getStringValues(actionRequest, Constant.WSM_QUERY_RECEIPT_STORAGE_LOCATION);
for (String storageLocationId : storageLocationCheckedArray2) {
LOGGER.info("storageLocationId:" + storageLocationId);
}
both get nothing.
please help me, thanks in advance.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™