Unable to fetch value

Hi there,
I have created a doctype training and also created a child table attendee.
attendee have two fields i.e. attendee id which is a link to employee and another attendee name.
What i am trying to do is display the name of attendee I have selected.

Training Doctype have a field name Attendee which is a table fieldtype and linked to attendee.
i have tried add_fetch method too.

cur_frm.add_fetch(‘attendee_id’, ‘employee_name’, ‘attendee_name’)
the above code is written in attendee.js

What i can do to retrieve value?

@Ujjawal

add this in training.js and try

@Hafees_Kazhunkil
No trigger required for add_fetch just write as it is [quote=“Hafees_Kazhunkil, post:3, topic:16360”]
cur_frm.add_fetch(‘attendee_id’, ‘employee_name’, ‘attendee_name’)
[/quote]

1 Like

Still no Luck I ll Paste my code so that it ll be easy for you to debug…