cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
taubry
Advocate II
Advocate II

item modified in a form

Hello,

I have a problem with the Data Tables on Power Apps. I have create an interface to create a recording. An interface to consult the recordings. And an interface to modify them. Here is a diagram explaining the 3 interfaces.

Capture.PNG

 

I would like to be able to view the modified data in my "view record" interface. Changes work fine in Excel but unfortunately, with item: LastSubmit, this takes the data from the new form1 record and not the modified data...

 

Thanks in advance !

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @taubry 

 

In Form1, Set the OnSuccess property of Form to

Set(RecordID, Self.LastSubmit.ID)

 

In Form 2, Set the item property to

LookUp(DataSource, ID = RecordID)

 


Thanks,
Stalin - Learn To Illuminate

View solution in original post

4 REPLIES 4
StalinPonnusamy
Super User
Super User

Hi @taubry 

 

In Form1, Set the OnSuccess property of Form to

Set(RecordID, Self.LastSubmit.ID)

 

In Form 2, Set the item property to

LookUp(DataSource, ID = RecordID)

 


Thanks,
Stalin - Learn To Illuminate

Thanks for your reply but it doesn't work.

I have this error on form1.OnSucess:

incompatible type type of context variable not compatible with values ​​elsewhere in your application

StalinPonnusamy
Super User
Super User

Hi @taubry 

 

  1. What is your data source?
  2. Can you try Set(RecordID, Form1.LastSubmit.ID)?
taubry
Advocate II
Advocate II

Thanks, I was inspired by your idea of ​​putting a global variable in OnSucess in order to change RecordID, and it worked.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (2,365)