C
|
chaintm 1/20/2009 |
Hi, This might be a bit out there for phprunner but I have yet to hit a road block with this program. Here's what I'm trying to do. I have a master table called "work_week" and its linked to its child table "payroll_main". In the master table, I have a field called "status" and its a static dropdown box with values "Locked" and "Un-Locked" I'm looking to somehow disable the Master detail link whenever the status field has a value of "locked" so that particular detail record becomes inaccessible. It would also be really great to reverse the effect if needed by changing the status back to "Un-locked" (but thats not as critical) I would imagine it would have to be done with an "after record updated" event in the "Edit" page but don't know where to begin. Any help is greatly appreciated
|
A
|
alang 1/21/2009 |
Another way as follows:
|
![]() |
vin7102 author 1/22/2009 |
Hi AlanG global $record; if ($data["status"]=="locked") $record["payroll_main_dtable_link"]=false; else $record["payroll_main_dtable_link"]=true;
|