This topic is locked
[SOLVED]

 master-detail relationship with wrong masterkey

6/2/2009 5:23:32 AM
PHPRunner General questions
A
amuro author

Hi, Jane
This is a master-detail project, please see the shot.
First step, I create a new master record, which has masterkey1, S015, and masterkey2, 2009/6/2


Then, I enter detail page to add records.

But, I don't save it and I go back to master page using browser's forward button.

Yes, I never know why users do like this. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=11966&image=2&table=forumtopics' class='bbc_emoticon' alt=':ph34r:' />


If user's mouse cursor moves to another record on list page, maybe he is not just on purpose.

And go to detail add page using backward button of browser.


OK, I enter data on detail add page. The masterkey2 is still 2009/6/2.


When I enter save, the masterkey2 changes into 2009/4/8.

Then, I go back using back button


This is last shot, the record is added to last master record, not current one.


I hope everyone could understand what I talk about.

Please give me some ideas or thoughts. Thanks!

J
Jane 6/2/2009

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.