Created custom attribute data handler for custom display.
Declared in app.xml:
<custom_attribute_data_handlers> |
| <custom_attribute_data_handler>ccrn_webtop.CustomAttributeHandler</custom_attribute_data_handler> |
</custom_attribute_data_handlers>
And implemented as specified in WDK development guide
public class CustomAttributeHandler extends DFCQueryCustomAttributeDataHandler
implements ICustomAttributeDataHandler {
public void getData(IDfSession session, ICustomAttributeRecordSet recordSet) {
List<String> atributos = new ArrayList<String>();
for (String atributo : recordSet.getCustomAttributeNames()) {
if ("unidades_participantes".equals(atributo)
|| "unidades_propietarias".equals(atributo))
atributos.add(atributo);
}
if (atributos.size() > 0)
try {
setDescription(session, recordSet, atributos);
} catch (DfException e) {
e.printStackTrace();
}
}
In object list only custom attribute set in handler display values, other custom attributes lose values.
AND DOES NOT WORK IN SEARCH RESULTS PAGE!!!
Environment:
Webtop 6.7 SP1
Server Version: 6.0.0.215 Linux.Oracle