title: Service Variable Events in Wavemaker 7
body: <p>I am trying to manually intercept the result of a Service Variable that consumes external JSON data.</p>
  
  <p>I can bind a button to call the API and bind the resulting json data to a grid and that works fine, but I want to pre-process some of the data before manually populating the grid.</p>
  
  <p>The Service Variable pop up has a tab for Events, but if you select "Javascript" for the OnSuccess or OnResult events (or any of them in fact) it doesn't generate a stub for you in the code and I cannot for the life of me work out how to trap these events.</p>
  
  <p>Please could someone point me in the right direction? The documentation doesn't explain this (I've searched extensively). I will post this on the Wavemaker boards as well and will cross post the answer if I get one, too.</p>