I have an action like this:
text: f.text;
async.run {
change text value { return "My async text" }
}
But in Mongo, there is no change.
I have an action like this:
text: f.text;
async.run {
change text value { return "My async text" }
}
But in Mongo, there is no change.
The
changeaction does not work in theasync.runblock because at the moment of execution it no longer has the required context to execute properly.The proper way to do this is to use one of the setData methods. This is the preferred solution, as these methods trigger any
setevents that might be associated with the data variables you are trying to set.