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:
parent
81f9d05e8d
commit
22b62fd345
|
@ -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());
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue