Ticket #2243 (new defect)
"Odd" record detection in control breaks not working correctly
| Reported by: | newjamie | Assigned to: | sminnee |
|---|---|---|---|
| Type: | defect | Priority: | minor |
| Milestone: | Component: | Sapphire Framework | |
| Version: | 2.2.1 | Severity: | medium effort / impact |
| Keywords: | odd control children easy | Cc: | |
| Due date: | Hours: |
Description
In a control, the <% if Odd %> statement only returns true on the first odd row, not continually throughout the firing of the control block.
For example
<% control Children %>
<% if Odd %>
Odd row %>
<% end_if %> ...
<% end_control %>
only fires one time, despite their being 8 children and the control block iterating the correct number of times.
I don't know if this is a problem just with the built-in Children control or all controls.
A temporary fix is to use:
<% control Children %>
<% if Even %>
<!-- do nothing -->
<% else %>
Odd row
<% end_if %> ...
<% end_control %>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
