I have a base query in my dashboard with multiple other queries that make use of the base query.
In my base query, I have the following evaluation when the search is done.
<search id="master">
...
<done>
<eval token="lastUpdated">strftime(now(),"%d/%m/%Y, %I:%M %p")</eval>
</done>
</search>
<search base="master" id="firstApp">
...
<done>
<set token="app_A">$result.App$</set>
<set token="status_A">$result.Status$</set>
</done>
</search>
...
<search base="master" id="lastApp">
...
<done>
<set token="app_Z">$result.App$</set>
<set token="status_Z">$result.Status$</set>
<set token="done">true</set>
</done>
</search>
In the last search, I set a token called "done" to be true. It currently works, but I am not sure if the searches will be run in order. Even if they run in order, is it guaranteed that the searches will finish evaluating in order and that all my tokens (app_A, ..., app_Z, status_A, ..., status_Z) are properly set?
I want to have a token to indicate that all searches are done. How can I do so?
I want this token so that in my JavaScript, I can do the following:
tokens.on("change:done", function(model, value) {
updateDisplay(tokens);
});
... View more