diff --git a/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/StatisticalWidget.java b/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/StatisticalWidget.java index e11d173..c60151f 100644 --- a/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/StatisticalWidget.java +++ b/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/StatisticalWidget.java @@ -80,7 +80,7 @@ public class StatisticalWidget { protected void createTableInfo(TabResource tabResource){ - id=tabResource.getId(); + id=tabResource.getTrId().getTableId(); label=tabResource.getName(); retrieveTabularResourceColumns(); @@ -89,7 +89,7 @@ public class StatisticalWidget { protected void retrieveTabularResourceColumns() { - TDGWTServiceAsync.INSTANCE.getColumnWithViewColumnIncluded(trId, new AsyncCallback>() { + TDGWTServiceAsync.INSTANCE.getColumnsForStatistical(trId, new AsyncCallback>() { public void onFailure(Throwable caught) { if (caught instanceof TDGWTSessionExpiredException) { @@ -123,6 +123,9 @@ public class StatisticalWidget { } + + + protected void openStatisticalWidget(){ ArrayList tables = new ArrayList(); TDExternalTable tdExternalTable=new TDExternalTable(trId, eventBus, id, label,columns); diff --git a/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/stat/TDExternalTable.java b/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/stat/TDExternalTable.java index fa553b8..17d2130 100644 --- a/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/stat/TDExternalTable.java +++ b/src/main/java/org/gcube/portlets/user/td/statisticalwidget/client/stat/TDExternalTable.java @@ -23,7 +23,14 @@ public class TDExternalTable implements ExternalTable { private String label; private Map columns; - + /** + * + * @param trId + * @param eventBus + * @param id + * @param label + * @param columns + */ public TDExternalTable(TRId trId, EventBus eventBus,String id, String label, Map columns) { Log.debug("TDExternalTable: "+trId); this.trId=trId; @@ -46,6 +53,14 @@ public class TDExternalTable implements ExternalTable { public Map getColumnsNameAndLabels() { return columns; } + + @Override + public String toString() { + return "TDExternalTable [trId=" + trId + ", id=" + id + ", label=" + + label + ", columns=" + columns + "]"; + } + + }