This topic is locked

Custom link for Add page

8/31/2011 11:41:34 AM
PHPRunner General questions
F
fmbma author

Let's say I have a Customers/Orders master-detail relationship. I have a custom dashboard page with customer information. If I want to create a custom link to the "Add New Order" page, how do I pass the the Customer ID to the Add Order page? Passing the masterkey via querystring doesn't seem to work.

thanks!

P
procheck 8/31/2011

Have you tried using Session variables?
PHPRunner session variables
Al

C
cgphp 8/31/2011

The params of the link are two: mastertable and masterkey1.
Example:

<a href="http://path/to/your/page/Orders_add.php?mastertable=Customers&masterkey1=56">Add New Order</a>