How to get list of Items in a Warehouse?

Hello,

I am trying to find a way to filter Items in a custom DocType when a user selects a Warehouse.

How to get list of Items based on selected Warehouse?

TIA