Quote from
paeon on April 1, 2020, 11:17 am
Hi Everyone
Not sure if this has been covered but cannot find it, I wish to access vars from Vneo from within a plugin, I know how to return values with parameters but I have a Promise in plugin that accesses 3 Tables in a Db and wanted to make sure that I have the results from all 3 before returning the result back to the calling program, I can print the results out to console ok.
Using a return after a Promise.all[] I get 'undefined' back because I expect that the calling program finishes before the Promise.all[] finishes.
I have looked into $scope. but I think this only works within Vneo with BeginJS EndJS.
I know I am probably missing something simple but any help greatly appreciated.
Hi Everyone
Not sure if this has been covered but cannot find it, I wish to access vars from Vneo from within a plugin, I know how to return values with parameters but I have a Promise in plugin that accesses 3 Tables in a Db and wanted to make sure that I have the results from all 3 before returning the result back to the calling program, I can print the results out to console ok.
Using a return after a Promise.all[] I get 'undefined' back because I expect that the calling program finishes before the Promise.all[] finishes.
I have looked into $scope. but I think this only works within Vneo with BeginJS EndJS.
I know I am probably missing something simple but any help greatly appreciated.