Hey Guys,
I want to set a DataCardValue in the Form Edit by clicking a button.
I tried with UpdateContext but it doesnt work.
Can you give me any advice?
Solved! Go to Solution.
Hi DanNik,
My test steps for a reference;
1. Add a Text box control.
2. Add a Button control, and set its OnSelect property as: UpdateContext({test:test+1})
3. Set the Text property of the Text box as: test
4. When clicking the button, the text in the Text box would be changed.
Here is the documentation about PowerApps Updatecontext function, please check it for more details:
https://powerapps.microsoft.com/en-us/tutorials/function-updatecontext/
Best regards,
Mabel Mao
I think I dont understand.
I have to put the updatecontext on the button.
But how it acceses the datacard?
Hi DanNik,
My test steps for a reference;
1. Add a Text box control.
2. Add a Button control, and set its OnSelect property as: UpdateContext({test:test+1})
3. Set the Text property of the Text box as: test
4. When clicking the button, the text in the Text box would be changed.
Here is the documentation about PowerApps Updatecontext function, please check it for more details:
https://powerapps.microsoft.com/en-us/tutorials/function-updatecontext/
Best regards,
Mabel Mao
Hi
In my scenario,
When we try to submit a new request to Add and Remove User.
I have two buttons, Add and Remove on my edit screen.
When we click on Add button ABC datacardvalue should be null.
when we click on Remove button ABC datacardvalue should be "Remove".
And the Datacardvalue should set to null once the form is submitted.
Any ideas how to fix this would help.
Thanks,
Mk
User | Count |
---|---|
182 | |
123 | |
88 | |
45 | |
43 |
User | Count |
---|---|
247 | |
156 | |
127 | |
78 | |
73 |