This topic is locked
[SOLVED]

 Info page with all related child records

11/6/2009 4:03:38 AM
PHPRunner General questions
J
jdu001 author

Hello,
I have the following tables (simplified):
Instruments:

.... ID ............... # ....... primary key

.... Type ............. VARCHAR

.... Serial ........... VARCHAR
Users:

.... ID ............... # ....... primary key

.... Name ............. VARCHAR
History:

.... ID ............... # ....... primary key

.... Instrument_ID .... # ....... foreign key (Instruments.ID)

.... User_ID .......... # foreign key (Users.ID)

.... Startdate ........ DATE

.... Enddate .......... DATE
Maintenance

.... ID ............... # ....... primary key

.... Instrument_ID .... # ....... foreign key (Instruments.ID)

.... Repairdate ....... DATE

.... Repairprice ...... NUMBER
I like to achieve this result:
A list page for the instruments:
-----------------------------------------------------------------------

...... Edit ... View .. Info .. Type ...... serial

........ O ...... O ..... O ... Clarinet .. 89R35-678

........ O ...... O ..... O ... Trumpet ... 12345-678

........ O ...... O ..... O ... Trumpet ... 56276-78
-----------------------------------------------------------------------
If you click on the Info-button I like to show the next page:
-----------------------------------------------------------------------
Type: ... Trumpet

Serial: . 56276-78
History:
... Startdate .. Enddate .... Name

... 2000-04-01 .............. John

... 1999-01-01 . 2000-04-01 . Carl

... 1990-06-01 . 1999-01-01 . Mary
Maintenace
.... Repairdate ..... Repairprice

.... 2004-05-26 ......... $ 34.00

.... 2003-03-02 ........ $ 254.00
-----------------------------------------------------------------------
Can this be generated with PHPRunner or do I have to programm it myself.

If I have to programm it myself, how can I integrate standard layouts and styles from PHPRunner?
Greetings,
Jo van Duin[size="2"][/size]

Sergey Kornilov admin 11/6/2009

I guess you are looking for Master-Details relationships.
More info and examples can be found at http://www.xlinesoft.com/phprunner/docs/master-detailes.htm

J
jdu001 author 11/9/2009



I guess you are looking for Master-Details relationships.
More info and examples can be found at http://www.xlinesoft.com/phprunner/docs/master-detailes.htm


Hello,
Making the List-page with the links to the two different child tables is no problem and works.

I like to have an overview of the child tables on 1 page so I can make a print of all the relevant information

about an instrument by selecting the info-link.
Greetings,
Jo

J
Jane 11/9/2009

Hi,
just turn on Display Master record info on the Details page option on the Table Link Properties dialog:

http://www.xlinesoft.com/phprunner/docs/master-detailes.htm