Hello,
I have two forms on my PowerApp, New Risk Assessment and New Risk (multiple risks can be added to one risk assessment session). However, I am having difficulty passing the Risk Assessment ID and Title values to the New Risk form.
Here is the code I had been using which worked last week but now whenever I navigate to a new page the Risk Assessment Title field is blank.
Solved! Go to Solution.
Try changing your formula to the following:
Navigate('New Risk', Fade, {DataCardValue1: DataCardValue134.Text})
This will create and set a context variable on the 'New Risk' screen with the text value from the DataCardValue134 control.
If you are trying to set another DataCardValue1 control on the 'New Risk' screen, then this process will not work. Instead, consider setting the Default property of your DataCard to the context variable. Or better yet, skip the variable and just set the Default property to DataCardValue134.Text
I hope this is helpful for you.
Try changing your formula to the following:
Navigate('New Risk', Fade, {DataCardValue1: DataCardValue134.Text})
This will create and set a context variable on the 'New Risk' screen with the text value from the DataCardValue134 control.
If you are trying to set another DataCardValue1 control on the 'New Risk' screen, then this process will not work. Instead, consider setting the Default property of your DataCard to the context variable. Or better yet, skip the variable and just set the Default property to DataCardValue134.Text
I hope this is helpful for you.
you need to add "Text" as DataCardValue134.Text to pass the value.
Thanks.
HI @trainblazer ,
Could you please share a bit more about the DataCardValue134 within your formula?
Does the DataCardValue134 store the Risk Assessment Title value?
Based on the formula that you provided, I think there is something wrong with it. Please consider modify your formula as below:
Navigate('New Risk', Fade, {DataCardValue1: DataCardValue134.Text})
Note: The DataCardValue134 represents a control rather than a Text value within your app.
In addition, as an alternative solution, you could also consider take a try to set the Risk Assessment Title value into a global variable, then you could use this global variable value in your app everywhere.
Modify your formula as below (set the OnSelect property of the "+" icon to following😞
Set(CurrentRiskAssessmentTitle, DataCardValue134.Text);
Navigate('New Risk', Fade)
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
The navigate formula still doesn't work but setting the default value did! Thank you so much!
Hi @RandyHayes ,
This solution had been working great for me however, I just realized that the passed ID value has not been saving to SharePoint. Any idea on what to do?
User | Count |
---|---|
137 | |
127 | |
75 | |
72 | |
69 |
User | Count |
---|---|
220 | |
135 | |
78 | |
58 | |
54 |