Commit af3243e3a853524f03ed3366b3db79c26a6141ef
1 parent
d486c5cd
Exists in
master
and in
17 other branches
Fix
Showing
1 changed file
with
14 additions
and
3 deletions
Show diff stats
js/app/views/ParamArgumentsUI.js
... | ... | @@ -63,12 +63,23 @@ Ext.define('amdaUI.ParamArgumentsUI', { |
63 | 63 | } |
64 | 64 | if (paramRequestObject.get('type') == 2) { |
65 | 65 | //Tab2D |
66 | + var dim1RelatedTable = me.getRelatedTableFromDim('dim1', paramInfo.data.tables); | |
66 | 67 | var dim2RelatedTable = me.getRelatedTableFromDim('dim2', paramInfo.data.tables); |
67 | - if (!dim2RelatedTable.variable) { | |
68 | - paramRequestObject.set('dim2-index', 0); | |
68 | + if (!dim2RelatedTable.mainDim) { | |
69 | + if (!dim2RelatedTable.variable) { | |
70 | + paramRequestObject.set('dim2-index', 0); | |
71 | + } | |
72 | + else { | |
73 | + paramRequestObject.set('dim2-sum-type', 1); | |
74 | + } | |
69 | 75 | } |
70 | 76 | else { |
71 | - paramRequestObject.set('dim2-sum-type', 1); | |
77 | + if (!dim1RelatedTable.variable) { | |
78 | + paramRequestObject.set('dim1-index', 0); | |
79 | + } | |
80 | + else { | |
81 | + paramRequestObject.set('dim1-sum-type', 1); | |
82 | + } | |
72 | 83 | } |
73 | 84 | } |
74 | 85 | } |
... | ... |