From 8cd37ce1a4e368abe1a167dba67d4ac5ec1ef446 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 6 Dec 2013 17:54:27 +0000 Subject: [PATCH] Minor updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@86691 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../portlets/user/td/client/TabularDataPortlet.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/client/TabularDataPortlet.java b/src/main/java/org/gcube/portlets/user/td/client/TabularDataPortlet.java index 96c8840..320677a 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/TabularDataPortlet.java +++ b/src/main/java/org/gcube/portlets/user/td/client/TabularDataPortlet.java @@ -228,16 +228,20 @@ public class TabularDataPortlet implements EntryPoint { Log.debug("gridPanel is: "+gridPanel); if (gridPanel != null) { List> columns= gridPanel.getGrid().getColumnModel().getColumns(); + for(ColumnConfig 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"; }