English 中文(简体)
提供穷人的仪表板应用程序通信
原标题:Providing Poor man s dashboard app communication

我意识到你正在为小组提供一种沟通方式。在那之前,我一直在想,我可以用偏好对象进行一些基本的交流。

但是,我如何为应用程序所在的仪表板找到唯一的ID呢?

如果有比通过偏好对象共享信息更好的解决方案,让我描述一下我们想要解决的具体问题:我们项目结构中的某些项目代表了我们想要显示“指标仪表板”的“程序”——该仪表板将由共享仪表板上的多个应用程序组成。但是,在拉力赛项目层次结构中,项目并不处于一致的水平,尽管我们有很多拉力赛项目,但我们只有大约四个项目。

因此,我希望这个代码度量仪表板是Rally中的一个页面,可以在我们的各种程序之间轻松切换。我宁愿不使用项目层次结构来做这件事,因为我们有很多项目,查找和选择程序既耗时又棘手。

最佳回答

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.

话虽如此,您可以看到当前不受支持的获取应用程序ID的方式,如果您制作了此应用程序的两个副本,您可以在控制台中看到应用程序在全球拉力赛消息总线上通信的结果。

您可以找到它的要点此处

<!DOCTYPE html>
<html>
<head>
    <title>My Custom App</title>

    <!--Include SDK-->
    <script type="text/javascript" src="/apps/2.0p/sdk.js"></script>

    <!--App code-->
    <script type="text/javascript">

        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 
            });

        });

    </script>

    <!--App styles-->
    <style type="text/css">

        .app {
            /* Add app styles here */
        }

    </style>

</head>
<body class="myApp">
</body>
</html>
问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签