variable1.setValue() doesn't work immediately

Hello,

Sometimes codes like

variable1.setValue(variable2.value.filter(row > {...})

works asynchronously and it creates problems. Because next line depends on it and processed without the proper value of variable1. I tried with await keyword before the statement. Even then it also didn't work properly.

Can anyone please give me a solution so that this line works completely before going to the next line?

Thanks in advance.

Sudip

How about add the code after await in to then?

3 Likes

Great! Thank you!!!

I can't imagine we can use JS then() here!.

Regards.

Sudip

1 Like