admin 9/6/2021 | |
I highly recommend check this Taming the beast article that explains the differents between events, buttons, code snippets, 'View as' Custom etc. The thing with code snippets is that they will be executed once on the page load meaning you cannot access any specific record data (one snippet, many records, won't work). What you can do though is to use 'View as' Custom where you can access any field value that belongs to the same record. |
1NET author 9/9/2021 | |
I have looked at the "Taming the beast" article, but the link from that page VIEW AS: CUSTOM More info on "View as: Custom" So no advanced information is available hence me having to turn to the forum for help. |
admin 9/9/2021 | |
If you Google "phprunner view as custom" it will take right to the page in question. |
1NET author 9/18/2021 | |
I was able to solve this myself. My issue has amplified as the math behing showing the percentage of completeness of a single row/record based on a custom set of fields and not all fields in the db table never gave the correct result. My database table has several fields that are updated by a checkbox updating the field as either 1 or 0, the other fields I wanted to use contained text data so the query was based around the MySQL function "case". here is the final code for my table $currentAuditID = $data["auditID"]; |