Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Updated DataCardValue resets after a couple of seconds

(1) ShareShare
ReportReport
Posted on by 25

Hello there, I have the following problem: I would be super excited if you could help me out.

 

I have a form that is connected to my Excel file with the columns ID and comment.

 

The form contains a datacard "comment," which I want to change in the app itself. Depending on the variable varID, I first want to filter the right row, if that makes sense. 

 

The form has the data source set to my excel file and the item setting to LookUp(myexelfiletable; ID = varID; ThisRecord).

 

I have a Save button that saves the new comment to my Excel file: 

 
Patch(myexcelfiletable; LookUp(myexcelfiletable; ID = varID); {Comment: DataCardValue.Text});
Refresh(myexceltable);;

 

Now I'm confused on what the setting should be so that whenever I change the text of the datacard, it is saved to the excel file and stays that way. 

 

I tried setting the datacard value to default = ThisItem.Comment, but whenever I change the comment, it is correctly saved to the excel file, but after a short period of time, the datacard value resets to its original value.

 

Say the original comment was: Comment 0.

 

I change the comment to CommentChange and press the save button. The excel file will show the newly updated comment in the correct column and row, but in the app itself, after 2 seconds, Comment0 is shown again.

 

I hope the question is formulated reasonably. Feel free to ask questions.

 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard