How to fetch data nd show in suggestion

how to fetch employee name and code in child doctype as suggestion using custom script