web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Changing an existing row/data from a new form

(0) ShareShare
ReportReport
Posted on by 9

Hi, 

My data source consists of two columns, "Date" and "FoodName".
If I want to Edit existing information then I go to my BrowseGallery and then -> select a specific row -> and then edit it - easy. 


But what if I am not coming from BrowseGallery and have not selected a specific row? What I want is a Form where I can fill in FoodName and then select a Date (and row ID if necessary) and then it replaces existing data.

 

Sincerely,

Kudy

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,492 Super User 2025 Season 2 on at
    Re: Changing an existing row/data from a new form

    Hi @Kudratilla,

     

    A possibility that comes to mind uses a variable:

     

    In the OnChange property of the field where the user can type the FoodName, set the following formula:

    With({
     _Item: LookUp(
     DataSourceName,
     FoodName = Self.Text
     )},
     If(
     IsBlank(_Item),
     NewForm(FormName);
     Set(
     varEditRecord,
     Blank()
     ),
     EditForm(FormName);
     Set(
     varEditRecord,
     _Item
     )
     )
    )

     

    Then set the Item property of the form to varEditRecord.

     

    Since this will break the reference to the gallery, you'll need to insert the below in the OnSelect property of (a control in?) your gallery to make things work again:

    EditForm(FormName);
    Set(
     varEditRecord,
     ThisItem
    );

     

    You should be careful with this though, because any typo will create a new record and pollute your data.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard