I have two PowerApps forms tied to two different lists. Both lists are used as a data source in both forms. I need a button on Form 1 that links to Form 2. There is a number field in Form 1 in which subtracting 1000 from equals the ID that is used in the URL to Form 2.
My best idea is to set two variables that are
X = ID - 1000
and then
Y = "Url" + "X"
and then
Launch("Y")
Does that make any sense? I'm not entirely sure how to format/complete the variable setting.
Solved! Go to Solution.
So, if these are in two different apps as I see in previous posts, then you will need to get the URL of the other App as your base url, then you can just append to that URL the ID that you want to pass. There really is no need for any variables for this.
You simply need to Launch(yourAppURL & "&ID=" & Text(ID-1000))
Then in your target app, you can use the Param function to get the ID passed.
If you are talking about URLs and the launch function, is it safe to say that these 2 forms are housed in separate apps? If not, and the 2 fields are in the same app, try this:
Make sure the form includes the ID field as a data card (even if you just keep it hidden for this purpose)
Button --> OnSelect= Set(otherFormVar, Value(DataCardValueN) + 1000) ; Navigate(ScreenWithOtherForm, screenTransition.Fade)
Then on the screen with the other form, make sure the form mode is set to Edit, and make the Item property:
Lookup(dataSource, ID = OtherFormVar, ThisRecord)
Hope I understood your question properly! If not, I apologize. Best of luck to you!
Hey @Nate-PTTP
Unfortunately your first assumption was correct in that they are housed in two separate apps. Any ideas for a workaround?
@RandyHayes any ideas here? You helped with an issue awhile ago that worked perfectly! Sorry if tagging isn't appropriate!
So what kind of formulas do you have at this point that you're having problems with?
If my strategy was correct (create/set 2 variables and then plug second variable into Launch function) then I'm unsure how to do that. Is there a way to do this all in a button (the last step of which would be Launch function)
So, if these are in two different apps as I see in previous posts, then you will need to get the URL of the other App as your base url, then you can just append to that URL the ID that you want to pass. There really is no need for any variables for this.
You simply need to Launch(yourAppURL & "&ID=" & Text(ID-1000))
Then in your target app, you can use the Param function to get the ID passed.
User | Count |
---|---|
254 | |
252 | |
83 | |
42 | |
31 |
User | Count |
---|---|
321 | |
266 | |
120 | |
70 | |
52 |