| Posted: 12/08/2008, 2:59 AM |
|
I am trying to hide a row based on duplicate RiskRef. I've followed the help topic on simple reporting - but cannot get this to work.
Any ideas what I am doing wrong?
Thanks in advance,
Tony
Snip from HTML.....
<!-- BEGIN Row -->
<!-- BEGIN Label xrows -->
<tr>
<td> {RiskRef}</td>
<td> {Insured}</td>
<td> {Interest}</td>
<td> {TDate}</td>
<td> {TType}{TCF}</td>
<td> {Account}{SubAC} {AType}</td>
<td> {SetCCY}</td>
<td style="TEXT-ALIGN: right">{SetAmt} </td>
<td> {OrgCCY}</td>
<td style="TEXT-ALIGN: right">{OrgAmt} </td>
<td> {DDate}</td>
<td style="TEXT-ALIGN: right">{StEqAmt} </td>
<td> {Status}</td>
<td> {DateCreated}</td>
</tr>
<!-- END Label xrows -->
<tr>
<td colspan="14"> {Annotation}</td>
</tr>
<!-- END Row -->
Before Row Show event...
global $Grid1;
global $prev_RiskRef;
if ($prev_RiskRef == $Grid1->RiskRef->GetValue())
{
$Grid1->xrows->Visible = False;
}
else
{
$Grid1->xrows->Visible = True;
$prev_RiskRef = $Grid1->RiskRef->GetValue();
}
_________________
-----------
PHP/indy Game Developer - http://www.AbsoluteBreeze.co.uk |