Add rows to subform (Form B) with dynamic data comming from another form (Form A)

Add rows to subform (Form B) with dynamic data comming from another form (Form A)

Form A is a Requisition form where People select products to get Quotes from suppliers. Subform in Form A looks like below-

Form B is a Quotation form where vendor submits quotes for products
Above data in subform A needs to be displayed in subform B(this is Vendor screen) like below

Vendor A should see like

Product      Quantity      Price
Product 1      10               [Vendor will enter]


Vendor B should see like

Product      Quantity      Price
Product 1       15            [Vendor will enter]
Product 2      15            [Vendor will enter]


Vendor just need to enter the price for product given to him only, as shown in 1st screenshot (Form A subform), product and quantity needs to be populated for vendor subform automatically via deluge when Form A is submitted successfully, example screen of vendor is below


I want below script to segregate the subform A data and dynamically create row1, row2, row3 - 
  1. row1 = Add_Quotation.Products();
  2. row1.Product="P1";
  3. row1.Quantity="1";
  4. row2 = Add_Quotation.Products();
  5. row2.Product="P2";
  6. row2.Quantity="2";
  7. rows = Collection();
  8. rows.insert(row1,row2);
  9. obj = insert into Add_Quotation
  10. [
  11. Products=rows
  12. Request_ID=input.Request_ID
  13. Added_User=zoho.loginuser
  14. ];