Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I hacked at the sample to create an example of an app that can pass events between two panels. This is very unsupported at this time and we reserve the right to break it whenever we want without any warning.</p> <p>That being said you can see the current unsupported way to get an Apps ID and if you make two copies of this App you can see in your console the results of the Apps communicating on the global Rally message bus.</p> <p>You can find the gist of it <a href="https://gist.github.com/2845161" rel="nofollow">here</a></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;My Custom App&lt;/title&gt; &lt;!--Include SDK--&gt; &lt;script type="text/javascript" src="/apps/2.0p/sdk.js"&gt;&lt;/script&gt; &lt;!--App code--&gt; &lt;script type="text/javascript"&gt; Rally.onReady(function() { Ext.define('CustomApp', { extend: 'Rally.app.App', componentCls: 'app', mixins:['Rally.Messageable'], launch: function() { var brokenInTheFutureIdThatWillWorkForNow = Ext.Object.fromQueryString(window.location.href); window.parent.Rally.Messages.subscribe("test",function(){console.error(brokenInTheFutureIdThatWillWorkForNow.panelOid,arguments);}); window.parent.Rally.Messages.publish("test",brokenInTheFutureIdThatWillWorkForNow.panelOid); //Write app code here } }); Rally.launchApp('CustomApp', { name: 'My Custom App' }); }); &lt;/script&gt; &lt;!--App styles--&gt; &lt;style type="text/css"&gt; .app { /* Add app styles here */ } &lt;/style&gt; &lt;/head&gt; &lt;body class="myApp"&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload