Is it possible to call a function defined outside the template? I have a grid where i need to get a value from the field caseid
field and do a lot of stuff, depending on that id. I made a template with a button for each row, but I am not able to reach the function that should take care of the rest.
I am trying to do something like this, but it doesn´t work:
// do a lot of stuff here
"<button id='#= caseid#' class='corr-button' onClick='showHistory(#= caseid#)'>show history</button>"