Variable GETARRAYINDEXBYVALUE is undefined. The e...
# cfml-general
c
Variable GETARRAYINDEXBYVALUE is undefined. The error occurred in D/pool/content/sandbox/ernie2/cms/vts/personalpreference/formpersonaldashbaordcontrol.cfm line 182
Copy code
180 :                             <select name="casereportfieldsdisplay" size="8" multiple class="texttiny">
181 :                                 <cfloop index="reportoption" list="#casereportfieldsdisplay#">
182 :                                     <cfif getarrayindexbyvalue(reportoption,casefieldarray) Gt 0>
183 :                                         <option value="#reportoption#">#casefieldarray[getarrayindexbyvalue(reportoption,casefieldarray)].text#</option>
184 : </cfif>
a
Well that code you cited isn't in the CFC. It's in
formpersonaldashbaordcontrol.cfm
c
getFieldSelector is being called by the form page, which generates html and uses the helper function GETARRAYINDEXBYVALUE which lives just above the getFieldSelector function inside the same search.cfc
Untitled.txt
a
Look at the error message you posted*:*
Copy code
The error occurred in D:/pool/content/sandbox/ernie2/cms/vts/personalpreference/formpersonaldashbaordcontrol.cfm
it's not the code in the CFC that is erroring.
c
Ah, i removed the function from that page and i didnt disable the rest of the code using it.
thanks!
a
Always look at the error message. it's displayed for a reason and always explains the problem