This topic is locked

Editing Detail Record On Master Form

3/4/2013 11:47:08 AM
PHPRunner General questions
B
btrdev author

I have Add and Edit forms with the child tables set to display on the Add and Edit pages, so that I can edit my master and detail records without leaving the page.
Of course, this only allows Inline Edit for detail records. However, some of the child records have many columns, so there is a lot of horizontal scrolling to edit, making things difficult for the user.
Is there some workaround that will allow me to edit the detail record in a popup form, without having to leave the page?

S
sthefaine 3/5/2013

Hi not sure it you have this resolved but what I did on the child list page is to go to After Record Processed event and added this code

$record["inlineeditlink_attrs"]="href=\"Your_Table_Name_edit.php?editid1=".$data["Primary_Key"]."\" "; this changed the inline edit to actually redirect to the edit page of the child and on the child page I put a custom button for Back and the Save to redirect back to the Master Page when done. Just a thought hope this may help you.

B
btrdev author 3/6/2013



Hi not sure it you have this resolved but what I did on the child list page is to go to After Record Processed event and added this code

$record["inlineeditlink_attrs"]="href=\"Your_Table_Name_edit.php?editid1=".$data["Primary_Key"]."\" "; this changed the inline edit to actually redirect to the edit page of the child and on the child page I put a custom button for Back and the Save to redirect back to the Master Page when done. Just a thought hope this may help you.


Thanks for the tip Steven.
So far it hasn't done quite what I want, but it does give me some ideas as to how I might resolve the problem.