Hi,
I tried to pass a param from a edit screen to a browse screen which has a sql to fetch the data by the param. But It shows an error when click lookup action. Thank you.
IllegalArgumentException: You have attempted to set a value of type class java.lang.String for parameter param_aaaa with expected type of class com.company.mastert.entity.UDCTYPE from query string select e from mastert$UDC e where e.udctype=:param_aaaa.
@Override
public void init(Map<String, Object> params) {
super.init(params);
PickerField.LookupAction action = (PickerField.LookupAction) testtypeField.getAction(PickerField.LookupAction.NAME);
action.setLookupScreenParams(ParamsMap.of("aaaa", "TESTTYPE"));
}
@Override
public void init(Map<String, Object> params) {
super.init(params);
if (params.containsKey("aaaa")) {
uDCsDs.setQuery(
" select e from mastert$UDC e where e.udctype=:param$aaaa");
uDCsDs.refresh();
}
}