Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
There's an error when trying to get Prevalue from a property in doc2form.ascx.cs (ver 3)
The following code uses 'val' to check for the key, but it should be 'key'
foreach (string val in df.Data.Value.ToString().Split(",".ToCharArray())){ int key = Int32.Parse(val.Trim()); if (((KeyValuePrevalueEditor)df.PrevalueEditor).Prevalues.ContainsKey(val)) preVal += "\n" + ((KeyValuePrevalueEditor)df.PrevalueEditor).Prevalues[val].ToString(); else preVal += "\n" + val + "";}
The code should read
foreach (string val in df.Data.Value.ToString().Split(",".ToCharArray())){ int key = Int32.Parse(val.Trim()); if (((KeyValuePrevalueEditor)df.PrevalueEditor).Prevalues.ContainsKey(key)) preVal += "\n" + ((KeyValuePrevalueEditor)df.PrevalueEditor).Prevalues[key].ToString(); else preVal += "\n" + val + "";}
Otherwise you just get prevalue values in your email
/Kingo
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Bug regarding prevalues
Hi
There's an error when trying to get Prevalue from a property in doc2form.ascx.cs (ver 3)
The following code uses 'val' to check for the key, but it should be 'key'
The code should read
Otherwise you just get prevalue values in your email
/Kingo
is working on a reply...