Custome table fetch from customer fields

Hello,

How to create table which fetch data from Customer? I created Doc.Type which has fields from Customer, but when user open this doctype I want to filter this customers which match my criteria.

If you are looking for a fetch customer from custom doctype you have to create a field with link customer doctype. Then frappe automatically enables search on the customer.