869
Views
8
Comments
how to call the  Async/await in outsystem javascript
Question
Application Type
Reactive
Service Studio Version
11.52.0 (Build 58882)

how to call the  Async/await in our outsystem javascript, i stucked in this js, please help me to solve


Screenshot (107).png
2021-06-02 20-50-04
Márcio Carvalho

As this post says, i think you need to create that js block in the scripts. 

https://www.outsystems.com/forums/discussion/67081/async-and-await-js/

Kind Regards,

Márcio

2022-02-01 06-08-14
Muruga Nandan

hello @Márcio Carvalho,I dont no how to do,can you please explain breifly 



2022-02-01 06-08-14
Muruga Nandan

Yeah, Márcio Carvalho's, I tried this way also, but I didn't get actual output.in console, it says an error message

Screenshot (108).png
2022-02-01 06-08-14
Muruga Nandan

Hello Marcio, I attached the oml, the script was in disabled,help me to solve the issues

highmap.oml
UserImage.jpg
line hammer
2025-10-18 11-13-53
Ramesh subramanian

hi Muruga Nandan,

Call an Asynchronous Client Action

When an asynchronous client action is called, its return value is not a simple JavaScript object, as in the synchronous case, but a promise. The output parameter values will be made available in the future (or eventually never) through the returned promise.

https://success.outsystems.com/documentation/11/extensibility_and_integration/javascript/extend_your_mobile_and_reactive_apps_using_javascript/defining_asynchronous_javascript_code/?_gl=1*193f8tz*_ga*MTc1NTIyNDYwNC4xNjc1MDY4NTQ5*_ga_ZD4DTMHWR2*MTY3NzU3MDIxMS44NS4xLjE2Nzc1NzA3MDAuNS4wLjA.


thanks,

Ramesh


2024-12-10 04-40-04
Gitansh Anand

Hi @Muruga Nandan, Please look at the OML attached. I have modified your OML from your previous reply.

Note that I have created a script which has your code with a little change, and then I used that script in the screen and called the function in OnReady.

Thanks
Gitansh Anand

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