Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@98363 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-03 12:34:08 +00:00
parent 81f9d05e8d
commit 22b62fd345
3 changed files with 8 additions and 9 deletions

View File

@ -6651,13 +6651,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throw new TDGWTServiceException( throw new TDGWTServiceException(
"Error in invocation: Operation not supported"); "Error in invocation: Operation not supported");
} }
Long id; Long id = Long.valueOf(editRowSession.getTrId().getId());
if (editRowSession.getTrId().isViewTable()) {
id = Long.valueOf(editRowSession.getTrId()
.getReferenceTargetTableId());
} else {
id = Long.valueOf(editRowSession.getTrId().getId());
}
TabularResourceId serviceTR = new TabularResourceId(id); TabularResourceId serviceTR = new TabularResourceId(id);
logger.debug("OperationInvocation: \n" + invocation.toString()); logger.debug("OperationInvocation: \n" + invocation.toString());

View File

@ -56,6 +56,8 @@ public class OpExecution4AddColumn extends OpExecutionBuilder {
ColumnTypeCode type = defNewColumn.getColumnType(); ColumnTypeCode type = defNewColumn.getColumnType();
switch (type) { switch (type) {
case ANNOTATION: case ANNOTATION:
map.put(Constants.PARAMETER_ADD_COLUMN_COLUMN_TYPE, map.put(Constants.PARAMETER_ADD_COLUMN_COLUMN_TYPE,

View File

@ -110,6 +110,9 @@ public class TDTypeValueMap {
tdTypeValue = new TDNumeric(fl); tdTypeValue = new TDNumeric(fl);
break; break;
case Text: case Text:
if(value==null){
value="";
}
tdTypeValue = new TDText(value); tdTypeValue = new TDText(value);
break; break;
default: default: