11
Views
3
Comments
Solved
Get Value to JavaScript
Question

Hello All,

i want to get all my value from Input and Radio Button when i click a Calculate Button to JavaScript.

also, i want to know how to return value to input text (output Temperature).

This is my UI.


Thankyou

Rank: #67
Solution

Hi Devin,


I prepared a small example for you in the OML in attachment.


Basically, I link the button to a client action:


Then on the action, I have a Javascript with one input parameter and one output parameter (you can adapt to your scenario and using my variable as the input of the Javascript:


And then just assign to the variable the output of the Javascript:


Hope it helps.


Cheers,
João

test2.oml

Rank: #67

Hi Devin,


Take a look at this documentation Extend Your Mobile App Using JavaScript - OutSystems which step by step shows how to pass parameters into Javascript.


Regards,
João

Rank: #67
Solution

Hi Devin,


I prepared a small example for you in the OML in attachment.


Basically, I link the button to a client action:


Then on the action, I have a Javascript with one input parameter and one output parameter (you can adapt to your scenario and using my variable as the input of the Javascript:


And then just assign to the variable the output of the Javascript:


Hope it helps.


Cheers,
João

test2.oml