Re: a-path and values
| Hi again, I've traced the problem to this point: __________________________________________________ (class QuantityWrapper) public Object getValue() { // TODO: should be context dependent-> return default val or actual etc.. QuantityInfo info = new QuantityInfo(); if(!wrappedObject.isAnyAllowed()){ //a cdv quantity has a list which contains cdvquantityitems List<CDvQuantityItem> qitems = ((CDvQuantity)wrappedObject).getList(); String currentUnit = null; if(!(qitems == null || qitems.size() < 1)){ String[] items = getUnitsForWrappedQuantity(); for(String s : items){ info.units.add(s); } //TODO for the moment, I can't see how I can get the current unit? so I'm using //the first one... info.setCurrentUnit(info.units.get(0)); } } if (dataValue != null){ String magnitude = String.valueOf(((DvQuantity)dataValue).getMagnitude()); //*********** HERE WE SHOULD SET THE CURRENT VALUE BUT WE DONOT.... *////////////// info.setMagnitude(magnitude); } else info.setMagnitude(""); return info; } _______________________________________________________ So the problem is that for any row I retreive from DB (any quantity item) the currentUnit is null which prevents getGUITestString() of sending the proper String which is magnitude + unit I do not actually understand the logic of this piece of code... -Pariya On Mar 26, 2010, at 3:02 PM, Pariya Kashfi wrote:
Regards Pariya MSc; PhD Candidate Department of Computing Science and Engineering Chalmers University of Technology |
_______________________________________________ openEHR-technical mailing list openEHR-technical@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-technical