Dear Power Apps Community,
I'm new to Power Apps and would appreciate your help. I have an app which has two galleries on a single screen. The data source for both galleries is the same SharePoint list. The user selects a record in the first gallery ("Guest"), which populates the second gallery ("Guest Details"), whose default DisplayMode is Read. By clicking an icon, the DisplayMode changes to Edit, and the user can edit the fields; by clicking a Save icon the record is updated using Patch back to the source SharePoint list. This works as intended.
I need functionality to create a 'blank record' in the second Gallery ("Guest Details"), such that the same fields appear as if the user had chosen an existing record from Gallery 1, but whose fields are blank so the user can create a new record. In other words, I want "Guest Details" to show my text labels (like "First Name"), but next to each label there should be a blank cell for the user to enter the data. Upon saving the new, single record, this should Patch back to the SharePoint list such that it assigns the next [SharePoint List] ID in line when the new record is added.
In another part of the app, I've achieved this using a Collection - to add a new record, the user clicks a button to go to a new screen that has a separate Gallery, designed for data input. The user can click an 'Add to Collection' button to enter multiple new records, all of which are Patched when they click Save.
What I can't seem to determine is how to use a single Gallery both for displaying existing records and creating a single, new record, which is then Patched back to the SharePoint list, without the use of a Collection. I am trying to simplify my App design for a data entry screen that will be used rarely, so am trying to avoid a Collection, or setting a separate data entry screen with separate gallery.
Thank you very much for your time and expertise Power Apps community! If anything is unclear, please let me know and I will elaborate.
Many thanks, Edd