Hello Everybody,
I am creating a copy and paste feature in my app but I need some variables to reset once navigation occurs.
I created variable RCARec from a previous screen when the copy button was pressed and this stores the value of a choice selection.
When pasting on a different screen, when OnSelect of the paste button is triggered I set a variable RCARecIn with the values of RCRec, see below
Set(RCARecIn, RCARec)
The RCARecIn value is then entered into the default box of the choice datacard I want to paste the data into.
All this works.
Problem is on the next OnSelect button I now need to set the RCARecIn variable to default but I can't seem to compile with the code below.
Set(RCARecIn, "")
I think this is because it is a choice column in a SharePoint list.
Please suggest code which would set the value of RCARecIn so the choice returns to empty.
Thank you in advance
Hi @rob4681
Try this:
Set(RCARecIn, Blank())
If you have any questions or feedback, please let me know. Have a great day! 😊
-----------------------
PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻
WarrenBelz
146,537
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,908
Most Valuable Professional