Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@86691 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ed9046b255
commit
8cd37ce1a4
|
@ -228,16 +228,20 @@ public class TabularDataPortlet implements EntryPoint {
|
|||
Log.debug("gridPanel is: "+gridPanel);
|
||||
if (gridPanel != null) {
|
||||
List<ColumnConfig<DataRow, ?>> columns= gridPanel.getGrid().getColumnModel().getColumns();
|
||||
for(ColumnConfig<DataRow,?> cc:columns){
|
||||
Log.debug("ColumnConfig:"+cc.getHeader());
|
||||
}
|
||||
|
||||
DataRowColumnConfig<?> dc=(DataRowColumnConfig<?>)columns.get(0);
|
||||
|
||||
|
||||
Log.debug("DC - Header:"+dc.getHeader());
|
||||
Log.debug("DC - Definition:"+dc.getDefinition().getId()+" Label:"+dc.getDefinition().getLabel()+" Key:"+dc.getDefinition().getKey());
|
||||
|
||||
Row row = gridPanel.getSelectedRow();
|
||||
Log.debug("Retrived row");
|
||||
|
||||
String rowInfo;
|
||||
if (row != null) {
|
||||
rowInfo = row.getFieldAsText(dc.getDefinition().getId());
|
||||
rowInfo = row.getFieldAsText(dc.getDefinition().getLabel());
|
||||
} else {
|
||||
rowInfo = "no row retrived";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue