I am trying to generate a listbox from the Problems list from the following function:
{!fn LoadProblemListBox(prob_after){
local prob_arr = getfield(prob_after,"|","")
local max = size(prob_arr)
local count = 1
local prob_str = ""
while count <= max do
local m = getfield(prob_arr[count],"^","")
// now replace any commas with a backslash-comma
local tempStr = ReplaceStr(m[2],",","\,")
if prob_str == "" then
prob_str = tempStr
else
prob_str = prob_str + "," + tempStr
endif
count = count +1
endwhile
return prob_str
}}
I have been unable to make this work. Any wise advice would be appreciated. Thanks
looks like it should work. how are you calling the function?
jjordet said:
looks like it should work. how are you calling the function?
From the mel expression box in the form after selecting dynamic choice list
{loadproblemlistbox(prob_after)}
{loadproblemlistbox(prob_after("delimited"))}
correct Michael...the function is trying to process the 'delimited' list of problems, which is not the default (list).
Thanks guys that did the trick.