I have a tabular gallery interface and each screen has a form from the same table on it. How can I save all of these without using the submitform for each form on the save button? All of these forms are from the "Company" table.
Here is the code on my OnSelect property of the save button:
lg_companyid = varCompanyRecord.lg_companyid
Any help to be more efficient would be great!
If these are all the same record on the same table, then you will want to split the forms properly and only submit one.
To learn how to split forms properly, please take a look over this video which will explain how to do it and not break your form functionality.
I hope this is helpful for you.
Thanks! That video helped. One thing though, if I have one field that is on multiple forms, how do I get this to save? If I do not update that field with the same text on each screen/form, the entry is not saved because the field may be empty on another form on a different screen. I hope that makes sense.
Patch(Companies,Coalesce(varCompanyRecord,Defaults(Companies)), Form_General_Information.Updates, Form_Additional_Information.Updates, Form_Company_Contacts.Updates, Form_Nexus_Analysis.Updates, Form_ST_Registrations_Filings.Updates);
Any suggestions would be great!
Okay, but you are showing a Patch function for your forms now. You don't want to be doing a patch to the Companies datasource, you want to be submitting your master form.
As for the common field, do you really want that to be editable on each form variation?
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Your chance to join an engaging competition of Power Platform enthusiasts.
The Super User program for 2022 - Season 2 has kicked off!
Attend in person or online, there are incredible conferences and events happening all throughout the month of September.