I want to populate all the item list of the same vendor in Purchase line on click of Populate action button. How can i do that??

I want to populate all the item list of the same vendor in Purchase line on click of Populate action button. How can i do that??