In listui, the solution for enumeration settings to display aliases

In listui, there is an enumeration field, but it is displayed as an enumeration value, not an alias solution;

Please overload listuithe getQueryExecutor()method in and add the statement "super.getQueryExecutor(); after

exec.option().isAutoTranslateEnum = true;  

Used to set the enum conversion to empty.

protected IQueryExecutor getQueryExecutor(IMetaDataPK queryPK, EntityViewInfo viewInfo) {
    	IQueryExecutor executor= super.getQueryExecutor(queryPK, viewInfo);
    	executor.option().isAutoTranslateEnum =true;
    	return executor;
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324471782&siteId=291194637