Can't access field values inside PHP button code

I’m facing issue accessing some field values with curly brackets inside PHP button code. For example, if I have field ‘emp_accepted’ (type TINYINT setup as checkbox with slider switch) and when tried to access the field value using {emp_accepted} it returns error ‘Array to String conversion’. In the past, I have done this without any issue. Interestingly I can access some field values without any issue such as {emp_id}, {emp_firstname}, etc

When accessing the same code from events or calling PHP method from events then it works fine. If the PHP method called by PHP button code then the error appears. Currently using scriptcase ver 9.4.018

what your button tells you if you do a print_r or a var_export, it should give you the table it sees

It shows nothing when I use print_r or var_export. Only works for some fields

When I use print_r({quoteno}) ; OR var_export({quoteno}) it shows 311245

When I use print_r({quote_amount}) ; OR var_export({quote_amount}) it shows nothing

quoteno INT(6)
quote_amount DECIMAL(13,7)

Just some random comments/questions.

Is the checkbox set as single or set as multivalue? I suspect multivalued fields could be stored in an array.
​​​​​​
Are the fields not working real or virtual (maybe the issue is with virtual fields only)?

Is the Php button plain php or ajax? I would try both and see if there’s any difference in behavior.