title: Sitecore 8 Speak UI - Call Pagecode Javascript from HTMLTemplate link
body: <p>I am working on ListControl and one of the columns has Delete link which I am formatting using HTMLTemplate as follows:</p>
  
  <pre><code>&lt;a href="javascript: app.showConfirmation()" &gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>My Javascript looks as follows:</p>
  
  <pre><code>define(["sitecore", function (Sitecore) {
    var DestinationRules = Sitecore.Definitions.App.extend({
        initialized: function () {
            this.processDestinationRules();
        },
        showConfirmation: function () {
            alert('here');
  
        },
  
    });
  
    return DestinationRules;
  });
  </code></pre>
  
  <p>For some reason, I am not able to call showConfirmation(). It says is undefined. I even tried Sitecore.Speak.app.showconfirmation() but not working.</p>
  
  <p>I tried my best to search online but not able to find much help around calling function through controls embedded inside HTMLTemplate.</p>
  
  <p>My next step is to call DialogWindow. </p>
  
  <p>Please if you can help me with the syntax of the above. Thanks in advance.</p>