Replicating Add lines functionality via new custom form

Hello Experts,

I have designed a form which has custom sales order lines

Now when I click on apply command button, I need to add those selected lines on to the sales order line tab in the salesTable form. I need something similar to apply button on SalesQuickQuote form

Any idea how this can be achieved?

Kindly advice


Shankar :)