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

 Navigator in reverse order

Print topic Send  topic

Author Message
GrzegorzL

Posts: 13
Posted: 02/02/2009, 3:26 AM

In this example,

http://examples.codecharge.com/ExamplePack/NavGrid/NavGrid.php


I would like to reverse the order of entries.
But then it must be added the code changed.
------------------------------------------------------------------------------------------


global $employees;
global $CurrentRecord;

//Calculate the number of records up to the current page
$PreviousRecords = $employees->PageSize * ($employees->PageNumber-1);

//increment the employee count
$CurrentRecord = $CurrentRecord + 1;

//Calculate and store the current page number in the empBackPage parameter of the Emp_Name link.
$employees->emp_name->Parameters = CCAddParam($employees->emp_name->Parameters, "empBackPage", $employees->PageNumber);

//Calculate and store each employee's record number in the employeesPage parameter of their corresponding Emp_Name link.
//This parameter is used automatically by the Navigator of the Grid on the detail page NavGrid_Detail.
$employees->emp_name->Parameters = CCAddParam($employees->emp_name->Parameters, "employeesPage",$PreviousRecords + $CurrentRecord);

----------------------------------------------------------------------------------------------

Does anyone know how to do this?
View profile  Send private message
damian

Posts: 838
Posted: 02/02/2009, 3:59 AM

edit the grid source and add a sort order
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
GrzegorzL

Posts: 13
Posted: 02/02/2009, 10:31 AM

In this case destroys the Navigator in the linked page.
This must be changed in the code above.
I think
View profile  Send private message
damian

Posts: 838
Posted: 02/02/2009, 1:15 PM

what does destroy mean? does it burst into flames?
sorry - but can you be more specific? :)
what if you edit the data sourc of the nav in the next page?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
GrzegorzL

Posts: 13
Posted: 02/03/2009, 4:05 AM

I found the cause.
You should have added sort order > reverse order in linked side too. And replace the condition "like" to "="
As I was doing a search by category "title" appear to have been mistakes.
Now is ok.
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.

MS Access to Web

Convert MS Access to Web.
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.