Adding Subform row when adding new row in deluge

Adding Subform row when adding new row in deluge

I am still new to deluge, but I have have trouble locating information on this. 

I have an online order form for my website. I would like to have a button to move that record information my main order form. I created a button in that report view of the online order form, and it does create the record in my main order form, brings the customers information over, but I am having difficulties adding a subform row. 

I have tried to break it down as simply as I know how to, but it will not add the subform row. 

Customer = Customers[Phone_Number == Phone];
if(Fuel_Type == "#2 Fuel Oil")
{
fuel = "4259390000000999120";
}
else
{
fuel = "4259390000000999172";
}
if(Phone == Customer.Phone_Number)
{
row1 = Deliveries.Products();
row1.Line_Products=fuel;
rows = Collection();
rows.insert(row1);
New = insert into Deliveries
[
Added_User=zoho.loginuser
Customers=Customer.ID
Status="Ordered"
Products=rows
];
}


Thank you in advanced for any help. 

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now