![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/d8843038-8549-435a-9394-d5d09e93d4db.png)
I need to implement the same logic on a custom screen. When I click the custom button, it should pop up a dialog box like the inventory lookup (see the image below). I need to select from the grid and have options to Add, Add & Close to the detail tab.
What are the steps to implement this, and where can I find the relevant code?
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/c542c5dd-aa7f-4376-b93e-616a1cced190.png)