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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

lock records

(0) ShareShare
ReportReport
Posted on by 95

Good morning community !! I have a question: I am developing an application that records requirements that include descriptions, requirement number, creation date, start date, end date, etc. And these in turn can be edited to modify certain data in case something has been loaded wrong. What I would need and I do not know how to do it is that once the request is finished, that there is the possibility that the user through a button or whatever, marks that that request has been finalized, and once that happens it is not can further modify that requirement. It would be saved with the data until that moment and the data of that requirement should not be allowed to be edited again in the APP. Is there a way to do this? Thanks a lot!

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Labraham36 

    I would suggest a separate column in your list to indicate that the record is either open or closed.  Then adjust your app to provide the logic based on the value of that column.

     

    I hope this is helpful for you.

  • Labraham36 Profile Picture
    95 on at

    Thank you very much for the reply ! Ok, I get the idea. One of the fields of the requirements is the "status", which can be "Open", "In process", "In Test", "Closed". How could it be done so that when the user classifies the status of the requirement as " closed ", can no longer be modified?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Labraham36 

    If you're saying "can no longer be modified" for in your app...then you just need to account for that status and not let the user modify it.  If you are referring to that in general (as in from the SharePoint list) then you can't.

  • Labraham36 Profile Picture
    95 on at

    Of course, I would need to create a function in the APP that verifies that status, and depending on it, let me modify the registry or not. I did this function: If (DataCardValue2 <> "Done"; Navigate ([@ 'Edit Requirement']; ScreenTransition.Fade) but it doesn't work. What am I doing wrong?App 1.pngSin título.png

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Labraham36 

    You're comparing a control to a Text.  You can see this in your formula editor as it shows an error under the equal sign.  And the error would be incompatible types.

    Your formula should be: 

    If (DataCardValue2.Text <> "Done"; Navigate ('Edit Requirement'; ScreenTransition.Fade))

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard