using input parameters without linking the sceern to another screen
Application Type
Reactive

Hi everyone,

I'm new to outsystems and trying to create a reactive application. my problem is the following:

I'm trying to implement a email verification .I've created a first screen where i have an input for an email and when clicking on the submit button i have a server action that creates a hash and sends both my email an hash inside a URL to the user email inbox to verify its account . So i need to create a screen into outsytems with a URL that contains the email and hash . the problem is that i don't know how to set the input parametres without linking it to an other screen .

I've tried storing the variables into the bd and clent variables but i don't know how to load them into the url of the screen .

I hope you can help me ,

Best regard.

Solution

Hi,

You need to take two input parameter in OS like below


And pass URL input parameter  Email and Hash Like as above mention-

for example

https://dipa-tiwari.outsystemscloud.com/OSTest/Home?Email=abc@test.com&Hash=12345


When you click on link OS screen will open and you can use this input parameter as you want.

input parameter should be same in URL and screen it will automatically handle.


hii i know that outsystems have a email sending service but i'm using an extrenal software for sending emails so i need to create a separate screen to verify the email with the given url

Hi,

If Understood correctly . Than you are try to create a screen in Outsystems for verifying mail link.

So create a screen in Outsystems and take two input variables and in your external software  pass the whole URL like below-

https://domain/Appname/ScreenName?inpvar=email&inphash=123

in this way you need to pass .


thank your for your response but in outsystems how to set the value of the input variables ? 

i know how to declare them but i don't know how to set their value (of course they need to be variable )

Your input parameter name and URL query string variable name should be same. It will automatically map query string parameter to screen input parameter.


Solution

Hi,

You need to take two input parameter in OS like below


And pass URL input parameter  Email and Hash Like as above mention-

for example

https://dipa-tiwari.outsystemscloud.com/OSTest/Home?Email=abc@test.com&Hash=12345


When you click on link OS screen will open and you can use this input parameter as you want.

input parameter should be same in URL and screen it will automatically handle.


thank you for your response it finally work :) 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.