CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [Resolved] printing TotalRows

Print topic Send  topic

Author Message
paulmason411


Posts: 127
Posted: 06/15/2008, 8:48 PM

I am trying to print/find the total rows for an editable grid by adding the following code to the before show event.

  
 print $Component->TotalRows;  

Nothing is printing, any suggestions?
_________________

http://paulmason.name - Web Development Blog

View profile  Send private message
Gena

Posts: 591
Posted: 06/16/2008, 3:12 PM

Try this action:

Retrieve Number Of Records

Use this action to retrieve the total number of records to be displayed within a Grid or Editable Grid form. The action can be used only in the Before Show event of a control within a Grid or Editable Grid form such that the control will hold the retrieved number of records.
_________________
Gena
View profile  Send private message
paulmason411


Posts: 127
Posted: 06/16/2008, 5:34 PM

Thanks Gena!

I used your advice and found the working code:
  
print $Container->DataSource->RecordsCount;  

_________________

http://paulmason.name - Web Development Blog

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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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