cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mqi
Regular Visitor

set manual value to form by button code

Greeting everyone

i'm new here

and here i have this form (source come from excel table)

mqi_0-1619531661565.png

 

anyway i want change status value of this form by code

for example when user pressd approve i want change (modify) status value by code to approve

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @mqi,

Do you want to modified Status value of a record from your datasource?
What is the Item property of your DetailForm? Formula like "BrowseGallery1.Selected"? Are you opening this screen from your gallery screen?
If yes, you can try this formula in your Approve button(I have tested this formula when Status column is a dropdown field or a Text field in my Excel, but pay attention, if this is a dropdown field, make sure "Approve" is one of the selections of your dropdown):

Patch(TableName,BrowseGallery1.Selected,{Status:"Approve"})

v-albai-msft_0-1619574088013.png

 

Best regard,

Allen

View solution in original post

1 REPLY 1
v-albai-msft
Community Support
Community Support

Hi @mqi,

Do you want to modified Status value of a record from your datasource?
What is the Item property of your DetailForm? Formula like "BrowseGallery1.Selected"? Are you opening this screen from your gallery screen?
If yes, you can try this formula in your Approve button(I have tested this formula when Status column is a dropdown field or a Text field in my Excel, but pay attention, if this is a dropdown field, make sure "Approve" is one of the selections of your dropdown):

Patch(TableName,BrowseGallery1.Selected,{Status:"Approve"})

v-albai-msft_0-1619574088013.png

 

Best regard,

Allen

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (4,138)