CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Hiding a row...?

Print topic Send  topic

Author Message
TonyReid


Posts: 159
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
View profile  Send private message
datadoit
Posted: 12/08/2008, 6:09 AM

Can the datasource be edited to show only unique records?

SELECT DISTINCT(RiskRef) ...
GROUP BY RiskRef
TonyReid


Posts: 159
Posted: 12/08/2008, 6:19 AM

no because its text fields.

Effectively, this should output something like this...
  
zd1234a   12221   12345   12222  4344   test annotation1  
                                                                          test annotation2  
                                                                          test annotation3  
                                                                          test annotation4  
  
zd1234a   12221   12345   12222  4344   test annotation5  
                                                                          test annotation6  
                                                                          test annotation7  
                                                                          test annotation8  
Im going to try and use panels.
_________________
-----------
PHP/indy Game Developer - http://www.AbsoluteBreeze.co.uk
View profile  Send private message
TonyReid


Posts: 159
Posted: 12/08/2008, 6:51 AM

Solved.

I used the Reporting function.
_________________
-----------
PHP/indy Game Developer - http://www.AbsoluteBreeze.co.uk
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.