I have a dynamic listbox to display problems, and I am having an issue where on occasion there is a problem or several problems that I can not select. I put in a select all buton that sucessfully selects the ones I can't manually select, but if I try to unselect the one I couldn't originally select, it unselects all of the problems that I originally could not select. I am having this same issue on several other dynamic listboxes for various observations. I did a MEL trace that doesn't show that I clicked any one of the ones that were giving me the issues. I put the same function call into a dynamic dropdown and I am sucessfully able to select any of results that I want. I put the code into a new blank form to make sure something else wasn't causing the issue, and I got the same results. Weare using CPS 10. My function is below. Has anyone else encountered this problem? Does it look like there is something wrong in the programming? I am not sure what to do next. Any help?
{fnProbListbox(PROB_AFTER("delimited"))}
!fn fnProbListbox(strList)
{
local strProblemList
local nStart
local strBuf
local strFormattedList = ""
strProblemList = getfield(strList, "|", "")
for i = 1, i <= size(strProblemList), i = i + 1 do
strProblemList[i] = getfield(strProblemList[i], "^", "")
strFormattedList = strFormattedList + fnConvertProblemTypeToString(strProblemList[i][1], FALSE) /* Number and prefix */
/* Need to remove commas from problem name */
strBuf = strProblemList[i][2] + " " + strProblemList[i][3]
strBuf = ReplaceStr(strBuf, ",", "\,")
strFormattedList = strFormattedList + strBuf + ", "
endfor
if (i > 1) then
strFormattedList = remove(strFormattedList, size(strFormattedList))
endif
return strFormattedList
}