This topic is locked

Maser Table view

4/29/2008 10:02:24 AM
PHPRunner General questions
R
Robbo author

When creating a Master Table, a link is obviously created to enable you to open up the master table. You can also 'mouseover' the link which gives you a sample of data that will be displayed but it seems that by default that PHP has restricted the number of rows to be displayed to 10. Is there any way that I can increase the number of rows to show when just using the mouse over facilty rather than open up the master table.
Many thanks in advnce.
Robbo

J
Jane 4/29/2008

Robbo,
to increase number of records on the details preview edit generated ..._detailspreview.php file:

if ( $recordsCounter > 10 ) { break; }

R
Robbo author 4/29/2008

Robbo,

to increase number of records on the details preview edit generated ..._detailspreview.php file:


Hi Jane
Located the detailspreview.php file and made the changes accordingly however still does not work as the changes I had made and saved have been altered back to the original default value.

A
alang 4/29/2008

Robbo, there are at least 3 approaches you can take to this as follows:

  1. As Jane suggested, edit the generated code however you have to REDO this every time you build your project (as you have experienced) which most people see as a serious disadvantage.
  2. You can change the original source code - ie edit the file - typically "c:\Program Files\PHPRunner4.2\Source\detailspreview.php". This will change the code for EVERY project you build and has the disadvantage that it will be lost if you refresh your version of PHPR with a new build.
  3. A third alternative which I use, is to place it in a business template ("c:\Program Files\PHPRunner4.2\templates\business\<template name>\source). This means it will be only used on projects which use that business template and will not be overwritten with a program version refresh.

R
Robbo author 4/30/2008

Robbo, there are at least 3 approaches you can take to this as follows:


  1. As Jane suggested, edit the generated code however you have to REDO this every time you build your project (as you have experienced) which most people see as a serious disadvantage.
  2. You can change the original source code - ie edit the file - typically "c:\Program Files\PHPRunner4.2\Source\detailspreview.php". This will change the code for EVERY project you build and has the disadvantage that it will be lost if you refresh your version of PHPR with a new build.
  3. A third alternative which I use, is to place it in a business template ("c:\Program Files\PHPRunner4.2\templates\business\<template name>\source). This means it will be only used on projects which use that business template and will not be overwritten with a program version refresh.


Thank you AlanG
The most logical solution is to use the third alternative however I have not yet understood the mechanics of creating from templates anf therefore I will leave that for a while. I have changed the code in the original source code and it works fine.