This topic is locked
[SOLVED]

 Need help with child links

2/6/2010 11:55:01 PM
PHPRunner General questions
R
Rens1976 author

Hi everyone,

Good to see 5.2 is out. I like the changes. I need a solution. I want to click the child link on a list page and go straight to the add page for that table. At the moment I just go to the list page and then need to click add to go to the add page. I'd like to remove this step. I'm assuming I need to change something in the code on the visual editor page. Any help would be appreciated.

Regards

Rens

J
Jane 2/9/2010

Hi,
use List page: After record processed event on the Eventstab for this purpose:

$record["DetailTableName_dtablelink_attrs"] = " href=\"DetailTableName_add.php?mastertable=masterTableName&masterkey1=".$data["FieldName"]."\" ";
R
Rens1976 author 2/10/2010



Hi,
use List page: After record processed event on the Eventstab for this purpose:

$record["DetailTableName_dtablelink_attrs"] = " href=\"DetailTableName_add.php?mastertable=masterTableName&masterkey1=".$data["FieldName"]."\" ";



Thanks again for your help Jane. Much appreciated.

Rens