Greetings,
I ran across a tough issue. I am creating a PDF form to display XML data. I'm trying to get results that look like this:
-- Category: xxx ---
** row 1 **
** row 2 **
** row 3 **
-- CATEGORY: yyy ---
** row 1 **
** row 2 **
-- CATEGORY: zzz ---
** row 1 **
** row 2 **
** row 3 **
** row 4 **
and so on. The categories are dynamic. My data looks like this:
<ROWSET>
<ROW>
<CATEGORY>xxx</CATEGORY>
<ADDRESS>100 A st</ADDRESS>
</ROW>
<ROW>
<CATEGORY>xxx</CATEGORY>
<ADDRESS>20 B st</ADDRESS>
</ROW>
<ROW>
<CATEGORY>yyy</CATEGORY>
<ADDRESS>300 C st</ADDRESS>
</ROW>
</ROWSET>
I am using Conditional Breaks, as described here:
http://forms.stefcameron.com/2006/05/06/conditional-breaks/
So my structure looks something like this:
- Subform
- CategoryHeader (subform)
- CategoryTextField, with a data binding to CATEGORY
- Row (subform)
- Address (textfield), with a data binding to ADDRESS
- ... (more data rows)
So I put a conditional break on Row, that is "No Break, Just Leader & Trailer", and shows CategoryHeader as the Leader. The problem is, none of the Conditional Breaks will display the CATEGORY - they show nothing. It's like the data is just not available to it because it's a Conditional Break.
http://forms.stefcameron.com/2006/05/06/conditional-breaks/ If you look at the example here, I am basically asking, why can't I say the name of the actual category instead of just saying NEW CATEGORY?
Any help with this is appreciated!
Thanks,
Martin