title: What event should I use in a User Control on a form refresh/requisition on Genexus?
body: <p>Whenever I need to make an ajax request to the server without refreshing the page, Genexus should emit some event that I could use in my UC.</p>
  
  <p>What exactly would be this event, and if there is none, how could I know every events in JS to use in an Genexus User Control?</p>
  
  <p>I.e.:
  If I click in an UserAction that may search for values in another table and then retrieve then for me, how can I capture this?</p>
  
  <p>Another Scenario:</p>
  
  <p>I'm making a request to the server and retrieving information of it. I need to get the<br>
     <code>$(gx-warning-message).text();</code>
  but if my request is still loading, when I execute my function, it will return nothing, because the event is still loading up informations.</p>
  
  <p>To avoid this, I'm making a looping, but it's not an elegant way to solve the issue.</p>
  
  <pre><code>  $(".Button").click(function() {
    var timesRun = 0;
    var interval = setInterval(function(){
        timesRun += 1;
        if(timesRun === 60){
            clearInterval(interval);
        }
        if ($(".gx-warning-message").text().length &gt; 0) {
          toastrgx();
          $(".gx-warning-message").text('');
        }
    }, 200);
  });
  </code></pre>
  
  <p>So, how can I make it better? </p>
  
  <p>Thanks</p>