This topic is locked

How to prevent user to change child records after final submit

5/5/2014 10:20:07 AM
PHPRunner General questions
A
Abul author

I have two tables such as: order as master and test as child. I want when user finally submit an order with few tests request then the child test record (s) for that specific order should be locked. so that user can not change (Add/Edit) in their child test(s) order after final submit. That is how to prevent user to change (Add/Edit) child test(s) order for a particular master record after session has expired or something like that.
I would appreciate if you please help me with simple code. Thanks in advance.

A
Athlon 6/26/2014

//List page - after record processed
$markingstatus = $data["Submit_For_Marking"];
if ($markingstatus=="Yes")
// if record exists do something

{

$record["edit_link"]= false;
}
This should point you in the correct direction... Don't get on so often so hope you sorted it already.
Mike.