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:
parent
15038c1fed
commit
c9ebc06ee8
|
@ -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.ChangeTableWhy;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
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.TRId;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnDataType;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.core.client.GWT;
|
import com.google.gwt.core.client.GWT;
|
||||||
|
@ -299,8 +300,21 @@ public class DenormalizePanel extends FramedPanel implements
|
||||||
Log.trace("loaded " + result.size() + " ColumnData");
|
Log.trace("loaded " + result.size() + " ColumnData");
|
||||||
columnsRetrieved=result;
|
columnsRetrieved=result;
|
||||||
resetComboStatus();
|
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>(
|
callback.onSuccess(new ListLoadResultBean<ColumnData>(
|
||||||
result));
|
columnsIntegerNumeric));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<Change>Added Resume to Validations</Change>
|
<Change>Added Resume to Validations</Change>
|
||||||
<Change>Added Security Exception</Change>
|
<Change>Added Security Exception</Change>
|
||||||
<Change>Added Normalize</Change>
|
<Change>Added Normalize</Change>
|
||||||
|
<Change>Added Denormalize</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="${groupId}.${artifactId}.1-1-0"
|
<Changeset component="${groupId}.${artifactId}.1-1-0"
|
||||||
date="2014-06-05">
|
date="2014-06-05">
|
||||||
|
|
Loading…
Reference in New Issue