Selecting Values in Dialog Box

I have a button inside the item table in Quotation form when I click the button I wanted that a dialog box should open that consists of the Item Table including the fields Item code, Amount, Rate, and Quantity. Once I select all the items in the dialog box they should again store into a field inside the item table.