Hi,
i have a grid with four fields from db table and one field via “New Field”. All fields are strings.
In event onRecord i have this code:
{my_field} = {dbfield_2};
Running the grid is ok (two columns with identical content.
Now, i create a run button (PHP). In OnRecord from the run button is this code:
$arr = [i];
[marked_id][$arr] = {db_field_1};
[marked_rec][$arr] = {db_field_2};
[i]++;
This works. But i can’t use:
$arr = [i];
[marked_id][$arr] = {db_field_1};
[marked_rec][$arr] = {myfield};
[i]++;
This give a error “undefined identifier $myfield” …
Why?