You are populating GradesForPDF in a query loop, so CurrentRow is available.
But are you filling in the FDF in a loop? Can't tell from your code snippet,
but you should be doing something like this:
<CFLOOP FROM="1" TO="#GetGrades.RecordCount#" INDEX="i">
/FDF << /Fields [ << /V (#GradesForPDF[i][1]#)/T (Grade)>> << /V
(#LASTNAME#)/T (NAME)>>
<< /V (#FIRSTNAME#)/T (TchNAME)>> ] .....
</CFLOOP>
-David
On Monday, June 18, 2001 5:19 AM, Janine Jakim [SMTP:[EMAIL PROTECTED]]
wrote:
> This is a repost. I sent this out Friday afternoon, but it never showed up
> again in my mailbox...sorry if you are receiving it for a 2nd time.
> I am trying to populate my pdf form using cf/fdf(non ActiveXmethod)-nice
> write up on that Max- your directions are superb and easy to follow. (If you
> don't know what I'm talking about you can check out this link
> http://www.mail-archive.com/[email protected]/msg32040.html )
> It works fine until I try to add an array to the equation. I keep getting
> error msgs. It's the msg that usually means that a variable can't be
> found/is misspelled. ("Error resolving parameter Currentrow....)I assume it
> is getting caught up on how the array variable is set up. This is what
> it's like:
> action page:
> <CFSET GradesForPDF=ArrayNew(2)>
> <CFLOOP QUERY ="GetGrades">
> <CFSET GradesForPDF[CurrentRow][1]=GetGrades.GradeForSubject>
> <CFSET GradesForPDF[CurrentRow][2]=GetGrades.GradingPeriod>
> <CFSET GradesForPDF[CurrentRow][3]=GetGrades.SkillID>
> </CFLOOP>
>
> The fdf looks like this
> /FDF << /Fields [ << /V (#GradesForPDF[CurrentRow][1]#)/T (Grade)>> << /V
> (#LASTNAME#)/T (NAME)>>
> << /V (#FIRSTNAME#)/T (TchNAME)>> ] .....
> The error is the resolving parameter CurrentRow.
>
> In my query I tried to do another cfset- something like
> <CFSET GradesForPDF=GradesForPDF[CurrentRow][1]---but of course that doesn't
> work/is illegal- is there a way to get this to output correctly????
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists