This topic is locked
[SOLVED]

 How to include a full formated child-view in master-list

10/30/2011 11:01:26 AM
PHPRunner General questions
M
mickna author

I think this was asked several times, but I do not really find a solution.

I'd like to customize a list-page from a master table to show also the child records as a full formatted table in list view.
If I check under "Tables" "Display child records on List page" and "Inline" I can toggle on and of the child-records in list page.

However, I would like to static show this child table with no toggling and also be able to place this table independently from the Master-html-Table somewhere on the list page...
Any hints?
thx,

mickna

C
cgphp 10/30/2011

You can use iframe to load the details table list inside the master table list: http://www.w3schools.com/tags/tag_iframe.asp

M
mickna author 10/31/2011

Thank you Cristian,
I thought about that. However, I think this should also be possible without using iFrame (I don't know, but I really do not like iframes <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=61823&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

As PR shows me the table as a popup (Display child records -> Popup) it should be possible to show the same static at the list view page, shouldn't it?
I see that the popup is called via <div> under the boy tag.
But thank you for this hint. If no other solution fits, I'll give it a try.
mickna

C
cgphp 10/31/2011

Do you want a box with the detail records under each master record ?

M
mickna author 10/31/2011

Hi Christian,
let me explain:

I have modified a "list view" to show only one entry from the master table (depending which user is calling the master table, he can only see his own entry). The child table stores some other informations regarding to this user.

(BTW: I have modified the list view, as I have had no success at all to customize the "View page" with a working menu)

  • So I want to show the user details (from master table) which works fin.
  • Also I want to show the detail records / child records on the same page as a table (best case: with all css formatting features).

C
cgphp 10/31/2011

You can create a template var and place it where you want on the List page. Assign to it an html table populated with child records (a query is needed to get child records).

M
mickna author 10/31/2011

That's what I am doing right now.
Thank you again for your friendly help!
Cheers,

Michael