AsyncResult.status property (apps for Office)
apps for SharePoint
Published: February 26, 2013
Gets the status of the asynchronous operation.
var myStatus = asyncResult.status;
An AsyncResultStatus value.
function getData() { Office.context.document.getSelectedDataAsync(Office.CoercionType.Table, function(asyncResult) { if (asyncResult.status == Office.AsyncResultStatus.Failed) { write(asyncResult.error.message); } else { write(asyncResult.value); } }); } // Function that writes to a div with id='message' on the page. function write(message){ document.getElementById('message').innerText += message; }
|
Supported clients |
Excel 2013, Excel Web App, Word 2013, and Project 2013 |
|
Library |
Office.js |
|
Namespace |
Office |