Can we set entity attribute inside the javascript ?

0
Currently, Javascript is not returning the value as the function is asynchronous call so can we have any provision inside the javascript to set attribute value and return taht attribute ?
asked
2 answers
0

Hi Shivprasad

You can use promise and await inside the async function to pause the return value until the code completes its execution

Note: include resolve() at the end of your logic to release the awaiting promise 

Thanks

Vignesh G

answered
0
mxobj.set("Name", "John Smith");

https://apidocs.rnd.mendix.com/9/client/mendix_lib_MxObject.html#set

 

answered