how to call the Async/await in our outsystem javascript, i stucked in this js, please help me to solve
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
hello @Márcio Carvalho,I dont no how to do,can you please explain breifly
Have a look at this video explaining how to do :)
https://www.youtube.com/watch?v=3fuO6--10uY
https://www.youtube.com/watch?v=mcfZeThnvOE
Yeah, Márcio Carvalho's, I tried this way also, but I didn't get actual output.in console, it says an error message
Hello Marcio, I attached the oml, the script was in disabled,help me to solve the issues
Check this one...Async/Await in JavaScript
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
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.ThanksGitansh Anand