Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello All,
Can someone help on how to redirect user to different mashups based on values entered in two different text box? For example I have textbox1 and textbox2. If user enters values in textbox1, I want to redirect them to Mashup1 and if they enter values in textbox2, I want to redirect them to Mashup2.
Thanks,
Riz
You'd have to use an expression widget (or event router possibly) and a navigation widget . Your service would evaluate and spit out possible outputs that you'd then bind to the navigation widget.
Thanks for the reply posipova!
How would we decide where to navigate based on output?
can you give an example if possible?
Yes you can.
For Textbox1, you can bind the Changed or EnterKeyPressed event to an Invisible Navigate widget, when you finished typing inside, the Navigate widget will be triggered and direct to Mashup1.
Do the same thing for Textbox2 and Mashup2.
(Set Mashup properties in the related Mashup 1&2, you can pass the value entered in Textbox to the mashup you opened)
Hope you are doing good. Could you please confirm if the issue has been resolved.
If yes, please mark the answer as accept as solution for the future reference. Thank you in advance.
Regards-Mohit Goel
Thanks for the response Zyuan1!
Don't want to call mashup based on Keypressed or change event. It will happen once user clicks on Button and based on input provided in the text box, it will call the appropriate Mashup.