Product: TIBCO Spotfire®
Mashup generates error if the analysis is updated externally using UpdateAnalysisService web service
If the analysis is updated externally using UpdateAnalysisService web service when same analysis is open in a mashup, then it throws the below error:
ErrorCallbacks: The analysis is reloading (reason: ScheduledUpdates).
There were registered callbacks that needs to be re-added.
Reason why we see this behavior:
When the mashup code (client side) registers a callback for some event, like onDocumentPropertyChanged in this case, the server side is notified and the callback is stored on the client side. When the analysis is reloaded (e.g. through ScheduledUpdates) the server side loses all callback information. So the connection is lost - the callback needs to be added again. This is what the error message says in this case.
Workaround:
As a workaround, we may add the callback(s) again as shown below:
function errorCallback(errorCode, description)
{
log(errorCode + ": " + description);
if (errorCode === spotfire.webPlayer.errorCodes.ERRORCALLBACKS)
{
// Register callback here again
}
}
Comments
0 comments
Article is closed for comments.