Copy table field using add Fetch

Hi ,
I am using "cur_frm.add_fetch(‘qc_template’, ‘qc_values’, ‘qc_template_values’); "
but getting error “OperationalError: (1054, “Unknown column ‘qc_values’ in ‘field list’”)”.
There is a table field with name ‘qc_values’ in the source doc .

Please Help.

Please check syntax of add_fetch method -

cur_frm.add_fetch(‘select_field’, ‘fetch_from_field_name’, ‘set_value_field_name’)

1 Like

@priya_s Thanks for reply .
The syntax is correct.
select_field= qc_template ,fetch_from_field_name=qc_values ,set_value_field_name=qc_template_values
qc_values and qc_template_values fields are table fieldtype.