Populate filtered list of sales orders based on projects

I have a doctype Dispatch which has a link to child table dispatch items.
Dispatch Items has columns project and sales order.
I want to get a filtered list of sales order related to project sleeted in project column.
How do i achieve this ?