Hi everyone!
I'm stuck with this topic for several days, and searched for every possible answer on google, yet I couldn't find a solution that works for me. I would be very grateful for your help.
I have a sharepoint list named Workers (containing data of workers at a certain company).
In that list I have a column named Status.
I created a powerapps form, having some single line text, choice fields etc. to create data for the workers. Note that, if I create a new worker, you cannot change the Status, and it doesn't have any value by default. If you click on any of the workers in the list, you can see the viewform (the data), now, if you click on modify, you get an editform, where you have 2 buttons; "Activate" and "Reject"
If you click on Activate, the ediform closes, and sets the worker status to "active", or, if you click on Reject, the same happens with status: "rejected".
Button1, Button2 : "Activate" and "Reject" button names
Status_Datacard1 : name of the status datacard
DatacardValue8 : name of my status datacards single line text input field
At least that is what I want my powerapps to do. I tried several options, for example; patching the OnSelect function each of the buttons, or UpdateContext the value of the single line text, or setting variable on the text field and Onselect of the buttons changing the variable to "active" or "reject". I cannot change the wanted value of my sharepoint list.
I've seen videos people doing this easily with a gallery, I think maybe sharepoint integration made this very hard for me.

Report
All responses (
Answers (