Using SmartClient Version: v10.0p_2015-02-26/PowerEdition Deployment (built 2015-02-26) in IE 11.
I have a DynamicForm that contains a CanvasItem that is composed of a DetailViewer. I have defined a DetailViewerFiled on the DetailViewer that has a DetailFormatter.
I am using SetData() on the DetailViewer to set it's record values like this...
The System.out in the formatter is never being executed which leads me to the believe that the formatter is never being called (also the fact that the field is not displaying properly in the DetailViewer).
Are formatters not applied when setting the data as opposed to fetching it?
Also...the documentation of the DetailViewerField.setDetailFormatter is non-existent.
I have a DynamicForm that contains a CanvasItem that is composed of a DetailViewer. I have defined a DetailViewerFiled on the DetailViewer that has a DetailFormatter.
Code:
DetailViewerField pocListFld = new DetailViewerField("ScrumTeamPocs"); pocListFld.setDetailFormatter(new DetailFormatter(){ @Override public String format(Object value, Record record, DetailViewerField field) { System.out.println("In POC formatter"); RecordList recs; String valueString=""; if(value!=null && RecordList.isARecordList(value)){ recs = (RecordList) value; for(int x=0 ;x< recs.getLength(); x++){ Record rec = recs.get(x); valueString = valueString+rec.toMap().toString(); } return valueString; }else{ return value.toString(); } } });
Code:
Record newValuesRec = new Record(newValuesMap); newValuesViewer.setData(new Record[] {newValuesRec});
Are formatters not applied when setting the data as opposed to fetching it?
Also...the documentation of the DetailViewerField.setDetailFormatter is non-existent.
Comment