Hello,
In my form, after the db read action I use a custom code action.
In the custom code I want to refer to an Array element of the retrieved record. How can I do this?
Hi dtws2008,
It will either be $form->data['column_name'] or $form->data['model_id']['column_name'] depending on whether you set a Model ID in the DB Read action.
Adding a Debugger action temporarily will show you the data available.
Bob
Hello Bob,
I need to update a $form->data['column_name'] by a calculation of some array elements that were retrieved by the DB read.
How to refer to the array elements? not the form fields.
Sorry, my mistake!
This helped me! Thanks a lot
Hi dtws2008,
As you have seen the DB Read data is added to the $form->data array in addition to the data from the form inputs.
Bob