cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Power5
Helper I
Helper I

How to I get my form to pull up existing records when I type something that matches what is already in the database into a field?

I want my app to work so that when someone inserts something that matches a record that it draws back all the data so that it can be updated and edited. 

Power5_0-1653505827433.png

 

16 REPLIES 16
Drrickryp
Super User
Super User

@Power5 

That isn't how a form works. It displays a single record. That record is selected from a table of records, shown in a galley, datatable dropdown or combobox control.

I know for a fact you can edit pre existing records and re submit. Maybe I didn't clarify that correctly.

Drrickryp
Super User
Super User

@Power5 

 That is true. How are you selecting the record you want to edit?

Power5
Helper I
Helper I

I've done it in the past to where I'll put either someones name or id and all the records will fill the page with the datacards I have displayed so that I can go back and edit any mistakes or update anything. 

Drrickryp
Super User
Super User

@Power5 

Your terminology is incorrect. Somehow you select a single record from a table for your form. The values in that record then fill the controls in the form's data cards. The form has a datasource and an Item property. The Item property tells the form which record in the datasource is being edited.

 

So how do I create this to be editable for users?

Drrickryp
Super User
Super User

@Power5 

Use a galley to show the records in your datasource. Call it Gallery1.  Use the same datasource for your form. In the Item property of the form put

Gallery1.Selected

The form will then fill up with the values in the selected record. If the name of the form is Form1, put a button outside of the form with the OnSelect property: SubmitForm(Form1). 

The user can choose the record to edit in the gallery, make changes in the form, and save them by pressing the button.

I'll show you the problem that happens when I do that. I have to many records to edit that way. 

Hello, how do I get my form in an edit form when I type in the loan number so that anything associated with that loan number fills up all the other datacardvalue fields? 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,157)