acaruson 6/18/2015 | |
I have a table of service records that the users are continually adding records to. From week to week, We will process those records up to a certain date. When certain service records are processed, they are marked by adding the processing date to a field named "ProcDate" in the table. The processed records are also marked by a checkbox field named "Processed". I want the users to have the ability to edit those records up to the time I process them. Before the records are processed, the ProcDate field is null and the Processed checkbox is equal to 0. I am using ASPRunnerPro 5.2 (build 412). Looking at a previous post that attempted to perform this function by disabling the Save button on the edit page, I attempted to set a 'before display' event on the edit page with the following code: if($values["ProcDate"] Is Not Null) { $xt->assign("save_button",false); } I even tried the code: if($values["Processed"] == 1) { $xt->assign("save_button",false); } without success. Both attempts result in a 500-Internal Server Error when attempting to open the list page that the edit page is associated with. Any suggestions to help with solving my issue with keeping users from editing records which have already been marked as processed? Thanks.
|
admin 6/18/2015 | |
The main issue is that you trying to use PHP code in ASPRunnerPro project. |
G
|
guntherg author 6/19/2015 |
The main issue is that you trying to use PHP code in ASPRunnerPro project.
|
admin 6/19/2015 | |
You can use similar approach in ASPRunnerPro but in version 5.2 it will be difficult as you do not gave access to field values in BeforeDisplay event. if not IsNull(values("ProcDate")) then |
G
|
gonzalosb 8/6/2015 |
Hi Gene Gunther (AIMS),
|