I have read the dev thread on SQL Stored Procedures & Triggers which goes back some years.
For those of us not yet confident enough to attempt calcualtions in LBF forms in php. Is there any reason why one could not use SQL triggers and Stored proceurse in LBF forms?
For example, I have a form to evaluate the risk of DVT’s that has predefined score values. I was thinking of using a custom lookup table to hold the description and score and in the LBF using required boolean choices to trigger a stored procedure to update a read only(LBF) score for the evaluation.
For me this would be a pretty staright forward task. My question is: Is there any reason why I should not do this?
I have the form_ID, field_id and with these in a lookup table the trigger just needs to execute a lookup and sum on the values to give a risk factor score and update the LBF_Data score total field value.
I appreciate that doing this in a core table or system process has huge ramifications. However referencing just LBF data, I can not seee that is would cause issues.