title: Populate drop down from button click
body: <p>I've got a custom action that I want to pass in a sql server name and it populates the dropdown list with the results, however the dropdownlist does not get updates with the results</p>
  
  <p>Added a custom action</p>
  
  <pre><code>[CustomAction]
          public static ActionResult PopulateAvailableDatabases(Session session)
          {
              const string availableDatabases = "AVAILABLE_DATABASES";
  
              session.Log("inside PopulateAvailableDatabases");
  
              var view = session.Database.OpenView($"DELETE FROM ComboBox WHERE ComboBox.Property='{availableDatabases}'");
              view.Execute();
  
              view = session.Database.OpenView($"SELECT * FROM ComboBox WHERE ComboBox.Property='{availableDatabases}'");
              view.Execute();
  
              var databases = GetDatabases(session);
              int index = 0;
  
              try
              {
                  foreach (var database in databases)
                  {
                      session.Log(database);
  
                      var record = session.Database.CreateRecord(3);
                      record.SetString(1, availableDatabases);
                      record.SetInteger(2, index++);
                      record.SetString(3, database);
  
                      view.Modify(ViewModifyMode.InsertTemporary, record);
                  }
              }
              catch (Exception ex)
              {
                  ex.ToString();
                  session.Log("Exception Details: " + ex.Message);
              }
              view.Close();
  
              session.Log("Closing view");
              view.Close();
              return ActionResult.Success;
          }
  </code></pre>
  
  <p>This is in my dialog:</p>
  
  <pre><code>  &lt;Control Id="FindDatabase" Type="PushButton" X="270" Y="65" Width="56" Height="17" Text="&amp;amp;Find Databases"&gt;
            &lt;!--&lt;Publish Event="NewDialog" Value="WelcomeDlg"&gt;1&lt;/Publish&gt;--&gt;
            &lt;Publish Event="DoAction" Value="PopulateAvailableDatabases"&gt;1&lt;/Publish&gt;
            &lt;!--&lt;Publish Event="EndDialog" Value="Return"&gt;1&lt;/Publish&gt;--&gt;
          &lt;/Control&gt; 
  </code></pre>
  
  <p>Here is the drop down:</p>
  
  <pre><code>  &lt;Control Id="DatabaseNameLabel" Type="Text" X="47" Y="181" Width="100" Height="15" TabSkip="no" Text="&amp;amp;Database:" /&gt;
          &lt;Control Id="DatabaseNameEdit" Type="ComboBox" X="45" Y="194" Width="220" Height="18" Property="AVAILABLE_DATABASES"&gt;
            &lt;ComboBox Property="AVAILABLE_DATABASES"&gt;
              &lt;ListItem Text="[AVAILABLE_DATABASES]" Value="[AVAILABLE_DATABASES]"  /&gt;
            &lt;/ComboBox&gt;
            &lt;Publish Property="DATABASE_NAME" Value="0"&gt;1&lt;/Publish&gt;
          &lt;/Control&gt;
  </code></pre>