public static void GetCurrentRecordID(Action<int> callback) { GetDataAsyncOptions gdo = new GetDataAsyncOptions(); gdo.Rows = RowType.ThisRow; gdo.CoercionType = CoercionType.Matrix; Office.Select("bindings#" + TableBinding).GetDataAsync(gdo, delegate(ASyncResult result) { if (result.Status == AsyncResultStatus.Succeeded && Script.Boolean(result.MatrixValue[0]) && Script.Boolean(result.MatrixValue[0][0])) { int recordID = (int)result.MatrixValue[0][0]; CurrentID = recordID; if (Script.Boolean(callback)) { callback(recordID); } } }); }
public static void SaveFileNoApi(object fileContents) { GetDataAsyncOptions gdo = new GetDataAsyncOptions(); gdo.Rows = RowType.ThisRow; gdo.CoercionType = CoercionType.Matrix; FolderHelper.GetRecordFolderID(delegate(string folderID) { request = new XmlHttpRequest(); string URL = string.Format("{0}/{1}/files/{2}?access_token={3}", APIBaseUrl, folderID, CurrentFile.Name, CookieHelper.AccessToken); request.Open("PUT", URL, true); request.OnReadyStateChange = OnReadyChange; request.OnError = OnUploadError; request.OnLoad = OnLoad; request.ResponseType = XmlHttpRequestResponseType.Json; request.Upload.OnProgress = OnUploadProgress; request.Send(fileContents); }); }
public void SetDataAsync(TableData data, GetDataAsyncOptions options) { }
public void SetDataAsync(TableData data, GetDataAsyncOptions options, Action<ASyncResult> callback) { }
public void SetDataAsync(object[][] data, GetDataAsyncOptions options, Action<ASyncResult> callback) { }
public void SetDataAsync(string data, GetDataAsyncOptions options) { }
public void GetDataAsync(GetDataAsyncOptions options, Action<ASyncResult> callback) { }