Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

Use button to fill field in dataverse table field or datacard text

Posted on by 6
I want to use a button to put a text in a field (in the table directly or through the form) on that record so my filter can then filter those out for that user. I have added a datacard that I will hide if I can get this to work as I have it now.
 
Example of what I am working with. 
 
 
User will select item on left, fill in the missing info on the right. There are a lot so I am giving them the option to edit and save first. But once they are fully done I want them to hit Complete and mark a field with something I can use to then filter out the record in the gallery on the left. This will also be used to start a flow to then create a PDF and then send for Signature once I have this working.
 
I have a feeling I'm missing something silly, but everything that I have found for this is a bit confusing and generally they are trying to do something more complicated.
 
My settings:
 
Table Screen>OnVisible   Set(carComplete,"2")
 
Button> OnSelect   UpdateContext({varComplete:DataCardValue23.Text})
 
 
I have tried numerous iterations of this also trying Patch and If statements. This is the only one that does not give me an error anywhere in my App, however it does absolutely nothing when I click the button
 
Thank you in advance
  • Suggested answer
    ronaldwalcott Profile Picture
    ronaldwalcott 1,026 on at
    Use button to fill field in dataverse table field or datacard text
    Do you want the complete button to update the selected record in the gallery with a value from some extra field say the extra field is a simple text box called TheEnteredValue you can use something like
     
    Patch(MyTable, Gallery.Selected, {MyItem: TheEnteredValue})
     
    Gallery would be the name of your gallery and MyTable the table being updated

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard