<cfset arrMonthly = arrayNew(2)>
<cfset arrWeekly = arrayNew(2)>
<cfloop query="qAbsen">
<cfif qAbsen.absentPeriodType eq "W">
#ArrayAppend(arrWeekly, week(absentDate))#
<cfif qabsen.absentControl eq "N">
#ArrayAppend(arrWeekly, "a")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 0>
#ArrayAppend(arrWeekly, "<font color='##ff0000'>A</font>")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 1>
#ArrayAppend(arrWeekly, "A")#
</cfif> <cfelseif qAbsen.absentPeriodType eq "M">
#ArrayAppend(arrMonthly, month(absentDate))#
<cfif qabsen.absentControl eq "N">
#ArrayAppend(arrMonthly, "a")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 0>
#ArrayAppend(arrMonthly, "<font color='##ff0000'>A</font>")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 1>
#ArrayAppend(arrMonthly, "A")#
</cfif> </cfif>
</cfloop>
I got this error when executing the code above.
Array dimension error.
If an array with more then one dimension is passed to this function, the value passed to the array must be an array with one less dimension.
anybody please help
<cfset arrWeekly = arrayNew(2)>
<cfloop query="qAbsen">
<cfif qAbsen.absentPeriodType eq "W">
#ArrayAppend(arrWeekly, week(absentDate))#
<cfif qabsen.absentControl eq "N">
#ArrayAppend(arrWeekly, "a")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 0>
#ArrayAppend(arrWeekly, "<font color='##ff0000'>A</font>")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 1>
#ArrayAppend(arrWeekly, "A")#
</cfif> <cfelseif qAbsen.absentPeriodType eq "M">
#ArrayAppend(arrMonthly, month(absentDate))#
<cfif qabsen.absentControl eq "N">
#ArrayAppend(arrMonthly, "a")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 0>
#ArrayAppend(arrMonthly, "<font color='##ff0000'>A</font>")#
<cfelseif qabsen.absentControl eq "v" and qAbsen.absentProcess eq 1>
#ArrayAppend(arrMonthly, "A")#
</cfif> </cfif>
</cfloop>
I got this error when executing the code above.
Array dimension error.
If an array with more then one dimension is passed to this function, the value passed to the array must be an array with one less dimension.
anybody please help