Пример #1
0
 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);
             }
         }
     });
 }
Пример #2
0
 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);
     });
 }
Пример #3
0
 public void SetDataAsync(TableData data, GetDataAsyncOptions options)
 {
 }
Пример #4
0
 public void SetDataAsync(TableData data, GetDataAsyncOptions options, Action<ASyncResult> callback)
 {
 }
Пример #5
0
 public void SetDataAsync(object[][] data, GetDataAsyncOptions options, Action<ASyncResult> callback)
 {
 }
Пример #6
0
 public void SetDataAsync(string data, GetDataAsyncOptions options)
 {
 }
Пример #7
0
 public void GetDataAsync(GetDataAsyncOptions options, Action<ASyncResult> callback)
 {
 }