Exemplo n.º 1
0
 public void WhenSetSaveOptions(Table saveOptions)
 {
     foreach (var option in saveOptions.Rows)
     {
         option["Name"] = option["Name"] + uniqueStamp;
         AdHocQueryDialog.SetSaveOptions(option);
     }
     AdHocQueryDialog.SaveAndClose();
 }
 public void WhenSetSaveOptions(Table saveOptions)
 {
     try
     {
         //set save options for the adhoc query
         foreach (var option in saveOptions.Rows)
         {
             option["Name"] = option["Name"] + uniqueStamp;
             AdHocQueryDialog.SetSaveOptions(option);
         }
         AdHocQueryDialog.SaveAndClose();
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not set save options to an adhoc query. " + ex.Message);
     }
 }
 public void WhenSetQuerySaveOptions(Table saveOptions)
 {
     try
     {
         //save the details which are in the table for the Save Options for the query
         foreach (var option in saveOptions.Rows)
         {
             option["Name"] = option["Name"] + uniqueStamp;
             AdHocQueryDialog.SetSaveOptions(option);
         }
         AdHocQueryDialog.SaveAndClose();     // save and close the query
         System.Threading.Thread.Sleep(4000); //pause because otherwise the code runs so rapidly that the next line is not invoked in time
     }
     catch (Exception ex)
     {
         throw new Exception("Error: Could not save the query options. " + ex.Message);
     }
 }