Similarly to how in a Master Detail relationship, phpmaker would automatically pass the primary key to the detail page and display it, how in addition to the primary key, do I get the item name from the Master Record, automatically placed in a field on the Detail Page?
To state it more simple. How do i pass a field value from the master page to a field in the detail page? Both fields use textbox controls. I have tried editvalue but without success?
In which server event did you put that code? In addition, please post your code for more discussion.
// Row Rendered event
function Row_Rendered() {
// To view properties of field class, use:
//var_dump($this->);// if (CurrentPageID() == “add”) {
//$this->ItemName->EditValue = “1”;
$this->ItemName->EditValue = $_POST[‘AssetName’];
}
}I used the Row Rendered event. I also tried Page_Render. As can be seen from the commented line, if I enter a value as 1, it worked. But clearly, I am not getting the value to pass from the Master Page to the Detail Page. While in the above code, I used $POST, I also tried $SESSION. AssetName is a field in the Master and ItemName, a field in the detail page. Both fields have textbox controls.
Is this for “Master/Detail Add” page?
Yes, the Add Page
In “Master/Detail Add” page, both master and section details should be empty. So, what value should be passed from master to detail section?