Updated DimensionRowSelectionDialog
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@95698 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ce2f05a72c
commit
d315057e99
|
@ -129,8 +129,18 @@ public class DimensionRowSelectionDialog extends Window {
|
|||
} else {
|
||||
String rowId = rowsId.get(0);
|
||||
Log.debug("Row selected: " + rowId);
|
||||
ArrayList<String> cellValues = gridPanel.getCellValue(column
|
||||
.getColumnId());
|
||||
ArrayList<String> cellValues;
|
||||
if(column.isViewColumn()){
|
||||
cellValues = gridPanel.getCellValue(column.getColumnId());
|
||||
} else {
|
||||
if(column.getRelationship()!=null){
|
||||
//Used a Dimension Column
|
||||
cellValues = gridPanel.getCellValue(column.getRelationship().getTargetColumnId());
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention", "No valid view column associated with this column!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (cellValues == null || cellValues.size() == 0) {
|
||||
Log.debug("No value retrieved");
|
||||
UtilsGXT3.alert("Attention", "Select a row");
|
||||
|
|
Loading…
Reference in New Issue