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 -> IDE/GUI

 Set Number Of New Records

Print topic Send  topic

Author Message
grum

Posts: 42
Posted: 06/15/2005, 10:10 AM

I have an application (CCS 2.3.2, PHP, MYSql) that collects information and submits the results to the database. On the Editable Grid - Data - properties I have the Records Per Page set to 20 and the Empty Rows set to 5. In the form navigation I have the page counts and no of pages displayed.

What I want to do and can not find a way is to only have 5 empty rows if the page displayed is the last one.

So if a search returns 43 records it will display 3 pages :-
Page 1 20 rows and no empty rows
Page 2 20 rows and no empty rows
Page 3 3 rows with 5 empty rows.

What is the best way to code this is codecharge
View profile  Send private message
Nicole

Posts: 586
Posted: 06/16/2005, 1:14 AM

Hello,
You can modify EmptyRows property of editable grid in its Before Show event. To find if page is last compare <form_name>Page URL parameter to PageCount property of editable grid. Here is sample code for a form “EGrid1”
  
if (CCGetParam("EGrid1Page", 0) == $EGrid1->ds->PageCount()){  
$EGrdi1->EmptyRows = 3;  
}  
else {  
$EGrdi1->EmptyRows = 0;  
}  

_________________
Regards,
Nicole
View profile  Send private message
grum

Posts: 42
Posted: 06/17/2005, 10:34 AM

Thanks for that - I will give it a go.

regards

Grum
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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