This topic is locked

AJAX popup for detail records

6/26/2007 11:27:18 PM
PHPRunner General questions
L
larsonsc author

I was wondering how I can modify the number of detail records that show in the AJAX popup. Currently it shows that it finds 18 records but only shows the first 10. I was wondering what I need to tweak to make it show all 18 for example and also control what fields it shows in the pop-up. Thanks for the help.
Using PHPR 4.0 Build 265.

Sergey Kornilov admin 6/26/2007

Check detailspreview.php file in the source folder.
These are two lines you want to modify:
echo ( GetRowCount($strSQL) > 10 ) ? ". Displaying first: <strong>10</strong>.<br /><br />" : "<br /><br />";
and
if ( $recordsCounter > 10 ) { break; }

L
larsonsc author 6/26/2007

Thanks, Sergey. That worked great. Any way I can make the preview show only certain fields from the detail records? I am guessing not since it seems that making a change to that file to manipulate the detail popup effects all projects built with a given installation rather than being able to manipulate the pop-up on a project by project basis.
Might be a nice feature to someday incorporate. I'd sure like to be able to have different projects have different settings for the AJAX details window. Just a thought though. Thanks for the help.

A
alang 9/6/2007

... also control what fields it shows in the pop-up.


I would also like to be able to control what fields are displayed. I have a case where on the detail list page some fields are calculated on the fly and the AJAX popup shows the default data (before processing) which I don't want to see. I would like to:

  • have the "details preview" display accessible in the visual editor so I can delete columns, AND/OR (allows each instance to be customised)
  • limit the number of columns/fields displayed in the popup (as per the solution offered by Sergey for # of rows in this topic, this applies across all screens and all projects)
    Any workarounds or plans for this?