Updated Denormalize

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@98406 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-03 16:52:05 +00:00 committed by Giancarlo Panichi
parent 15038c1fed
commit c9ebc06ee8
2 changed files with 16 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableReque
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataType;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.GWT;
@ -299,8 +300,21 @@ public class DenormalizePanel extends FramedPanel implements
Log.trace("loaded " + result.size() + " ColumnData");
columnsRetrieved=result;
resetComboStatus();
ArrayList<ColumnData> columnsIntegerNumeric=new ArrayList<ColumnData>();
for(ColumnData c: result){
if(c.getDataTypeName().compareTo(ColumnDataType.Numeric.toString())==0 ||
c.getDataTypeName().compareTo(ColumnDataType.Integer.toString())==0) {
columnsIntegerNumeric.add(c);
}
}
if(columnsIntegerNumeric.size()<1){
UtilsGXT3.alert("Attention",
"No Column with data type Integer or Numeric");
return;
}
callback.onSuccess(new ListLoadResultBean<ColumnData>(
result));
columnsIntegerNumeric));
}

View File

@ -5,6 +5,7 @@
<Change>Added Resume to Validations</Change>
<Change>Added Security Exception</Change>
<Change>Added Normalize</Change>
<Change>Added Denormalize</Change>
</Changeset>
<Changeset component="${groupId}.${artifactId}.1-1-0"
date="2014-06-05">