telmiger
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.
Tony
|
|
|
|