Пример #1
0
 public void WhenSetSaveOptions(Table saveOptions)
 {
     foreach (var option in saveOptions.Rows)
     {
         option["Name"] = option["Name"] + uniqueStamp;
         AdHocQueryDialog.SetSaveOptions(option);
     }
     AdHocQueryDialog.SaveAndClose();
 }
Пример #2
0
 public void WhenSetSaveOptions(Table saveOptions)
 {
     try
     {
         //set save options for the adhoc query
         foreach (var option in saveOptions.Rows)
         {
             AdHocQueryDialog.SetSaveOptions(option);
         }
         AdHocQueryDialog.Save();
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not set save options to an adhoc query. " + ex.Message);
     }
 }
Пример #3
0
        private static void CreateUnacknowledgedRevenueSelection(string selectionName)
        {
            InformationLibraryPanel.AddAdHocQuery("Revenue");

            AdHocQueryDialog.FilterBy("Revenue");
            AdHocQueryDialog.AddFilterField("Transaction type", CreateTransactionCriteria());
            AdHocQueryDialog.AddFilterField("Date", CreateDateCriteria());
            AdHocQueryDialog.FilterBy("Revenue\\Revenue Letters");
            AdHocQueryDialog.AddFilterField("Acknowledge date", CreateAcknowledgeDateCriteria());

            AdHocQueryDialog.FilterBy("Revenue");
            AdHocQueryDialog.AddOutputField("Transaction type");
            AdHocQueryDialog.FilterBy("Revenue\\Constituent");
            AdHocQueryDialog.AddOutputField("Last/Organization/Group/Household name");

            AdHocQueryDialog.SetSaveOptions(CreateSaveOptions(selectionName));
            Dialog.Save();
        }
 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);
     }
 }