This topic is locked

Cool Master Detail Hack

2/18/2008 6:10:12 AM
PHPRunner General questions
G
gparchuc author

can I suggest this change in the new version, cause now i'm doing it by modifying the code internally. Here's a picture of what i'd like to suggest:


the thing is to have the master-client detail popup in the table value insted of creating a new column with the table name repeatedly fopr every value.
thanks a lo t for this excellent software.

J
Jane 2/18/2008

Hi,
you can do it editing your pages on the Visual Editor tab -> HTML mode.

Find this code:

<TD vAlign=middle align=middle {$row.1FieldName_style}>

{$row.1FieldName_value}</TD>



and replace it with this one:

<TD vAlign=middle align=middle {$row.1FieldName_style}><A class=tablelinks2 href="DetailTableName_list.php?{$row.1DetailTableName_masterkeys}" {if $useAJAX} onmouseover="RollDetailsLink.showPopup(this,'DetailTableName_detailspreview.php'+this.href.substr(this.href.indexOf('?')));" onmouseout="RollDetailsLink.hidePopup();" {/if}>{$row.1FieldName_value}</A></TD>


Then remove column with links on the Visual Editor tab manually using Delete Columns option.

J
jclout 2/19/2008

I am trying to create 3 new columns on a custom view page that will show a popup like above. I have copied the code and put it where I need to but I am not getting a popup. The custom view page does not have a popup before I added the code. Is there something I am missing???
Code:

<TD class=borderbody vAlign=middle align=middle width=40><A

class=tablelinks id=master_Office{$row.1recno}

href="Office_list.php?{$row.1Office_masterkeys}"

{if $useAJAX} onmouseover="RollDetailsLink.showPopup(this,'Office_detailspreview.php'+this.href.substr(this.href.indexOf('?')));" onmouseout="RollDetailsLink.hidePopup();" {/if}>Office</A></TD>

J
Jane 2/19/2008

Hi,
this code works on the list page only.

Unfortunately there is no easy way to add link with popup to the view page.

L
laonian 2/20/2008

I am trying to create 3 new columns on a custom view page that will show a popup like above. I have copied the code and put it where I need to but I am not getting a popup. The custom view page does not have a popup before I added the code. Is there something I am missing???

...



I tried to setup master-detail relations using tables from cumstom view and it did not work either. I found the relation does not persist after building the project, even though the datasource page allows you to do it. I am using PR 4.2 Build 348.

J
Jane 2/21/2008

Hi,
I wasn't able to reproduce this error.

Could you send your project file along with database creation script to [email=support@xlinesoft.com]support@xlinesoft.com[/email] for investigation?