From 6dfd259d42090c7c856fd472823bb047d5cd82d0 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 2 Jan 2014 22:26:05 +0000 Subject: [PATCH] Corrected logic for processing multiple return values for conditional ROs. Replaced xFF hex value with xA0 hex value in ProcessROReturnValue method. --- PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 65ae358a..233611c8 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -693,10 +693,10 @@ namespace VEPROMS.CSLA.Library for (int i = 0; i < lstROVals.Count; i++) { string tsts = Convert.ToInt32(multiRoValues[i][0]).ToString("X4"); - myGrp.children[i].value = lstROVals[i]; + myGrp.children[i].value = lstROVals[i].Replace("\xFF", "\xa0"); myGrp.children[i].roid = TableID.ToString("X4") + myGrp.ID.ToString("X8") + tsts; myGrp.children[i].type = -1; // Multiple return value inherit type from parent - myGrp.children[i].title = lstROVals[i]; + myGrp.children[i].title = lstROVals[i].Replace("\xFF", "\xa0"); } } else @@ -923,7 +923,8 @@ namespace VEPROMS.CSLA.Library if (!DictROVar.ContainsKey(str.Substring(0, nxt))) // need a try/catch here. { DictROVar.Add(str.Substring(0, nxt), tmpval); - multiRoValues.Add(str.Substring(0, nxt)); + if(nxt == 1) + multiRoValues.Add(str.Substring(0, nxt)); } else return null;