CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Make a Grid and Record page includable and functional for any page (php)

Print topic Send  topic

Author Message

Posts: 61
Posted: 04/19/2014, 7:14 AM

I created a new includable page and ran the grid and record builder inclusive the ajax features that come with it. (Dialog Panel etc)

I then included the page in my main page.
The grid worked fine but as soon as I hit the detail or add new link the page page displayed a error because the links in my grid pointed directly to the includable page and not to my main page.

I could manually point the links to my main page but that would mean the includable page would only work for one page.

Here is what I did to make the includable page work for any page.

In the before show row modify the detail link. (since its an includable page you also have to define the page name)

$page_name->grid_name->link_name->Page = basename($_SERVER['PHP_SELF']);

Do the same for the add new link in the before show event.

Now you can include the page to any page and the detail and add new link will always point to the correct page.

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

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

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