J
|
Jane 1/5/2009 |
Hi, if ($data["Lock"]==1) { $record["edit_link"] = false; } |
|
jpedwardspost author 1/7/2009 |
Hi, use List page: After record processed event on theEvents tab for this purpose. Here is a sample:
|
J
|
joseph83 1/7/2009 |
How can we make same function on Asprunner pro. |
J
|
Jane 1/8/2009 |
Hi, if rs("FieldName")="1" then record("edit_link") = False end if |
J
|
joseph83 1/8/2009 |
It doesn't work. |
J
|
Jane 1/9/2009 |
Hi, |
J
|
Jane 1/12/2009 |
It's difficult to tell you what's happening without seeing actual files. |
P
|
polaretto 1/26/2009 |
Thanks for this - I implemented it as: global $record; if ($data["freeze"]=="1") { $record["edit_link"] = false; } and it worked great. Had to change my original field name from 'lock' to 'freeze' because lock turns out to be a mysql keyword and broke my query :-) JP
|
J
|
Jane 1/27/2009 |
Hi, $rs = CustomQuery("select Count(*) from DetailTable where DetailKey=".$data["MasterKey"]); $data = db_fetch_numarray($rs); if ($data[0]>10) //10 records in the detail table - lock detail link { $record["DetailTableName_dtable_link"] = false; } |
P
|
polaretto 1/27/2009 |
Hi, use List page: After record processedevent on the Events tab for this purpose. Here is a sample:
|
J
|
Jane 1/28/2009 |
Hi, global $record; if ($data["freeze"]) { $record["magazzino_entrate_dtable_link"] = false; } |