This topic is locked
[SOLVED]

 master table link redirect

11/8/2011 10:15:07 PM
PHPRunner General questions
W
wildwally author

Can anyone tell me how I redirect the masterlink on the list page?
I have found a few things that suggest After record Process something along the line of:

$record["AE_dtablelink_attrs"] = goto view page


I just need to know what. I've tried a couple different things with no luck or very undesirable results. If its not possible to redirect tell me how to make the links appear only if child record exists and disable the link to the list page. I can get the links to appear when records present; however, using the above code like this:

$record["AE_dtablelink_attrs"]="":


Disables the link and also makes the link not appear.
Thanks in advance.

W
wildwally author 11/10/2011



Can anyone tell me how I redirect the masterlink on the list page?
I have found a few things that suggest After record Process something along the line of:

$record["AE_dtablelink_attrs"] = goto view page


I just need to know what. I've tried a couple different things with no luck or very undesirable results. If its not possible to redirect tell me how to make the links appear only if child record exists and disable the link to the list page. I can get the links to appear when records present; however, using the above code like this:

$record["AE_dtablelink_attrs"]="":


Disables the link and also makes the link not appear.
Thanks in advance.


Maybe I wasn't clear in what I was asking that I have a lot of lookers but no takers.
On the list page the link that is auto generated by PHPR, when you click on it it takes you too the details list page.
the url for default link : tablename_list.php?mastertable=dbo.tablename&masterkey1=142
I want it to take me to the view page for the child record instead.
tablename_view.php?editid1=142

C
cgphp 11/10/2011
$record['AE_dtablelink_attrs'] = "href = \"tablename_view.php?editid1=".$data['id_field_name']."\"";