在SharePoint中的特定div中呈现Rally SDK 2.1
在Rally SDK V1.33中,我可以呈现如下数据表:在SharePoint中的特定div中呈现Rally SDK 2.1,sharepoint,datatable,rally,Sharepoint,Datatable,Rally,在Rally SDK V1.33中,我可以呈现如下数据表: ...(extra code omitted) var table = new rally.sdk.ui.Table(config, rallyDataSource); table.display("tableDiv"); 它将显示在页面上已指定的“tableDiv”中 在SDK V2.1中,我似乎不知道如何做同样的事情。当它呈现时,它会占据整个页面 我尝试将renderTo添加到Ext.define和this.add中,但似乎没有任
...(extra code omitted)
var table = new rally.sdk.ui.Table(config, rallyDataSource);
table.display("tableDiv");
它将显示在页面上已指定的“tableDiv”中
在SDK V2.1中,我似乎不知道如何做同样的事情。当它呈现时,它会占据整个页面
我尝试将renderTo添加到Ext.define和this.add中,但似乎没有任何区别
这是我的密码:
Rally.onReady(function() {
Ext.define('PortfolioItems', {
extend: 'Rally.app.App',
componentCls: 'app',
renderTo: 'tableDiv',
launch: function() {
this.drawTypeComboBox();
},
drawTypeComboBox: function(){
this.typeComboBox = this.add({
xtype: 'rallyportfolioitemtypecombobox',
renderTo: 'tableDiv'
});
this.typeComboBox.on('select', this.drawGrid, this);
this.typeComboBox.getStore().on('load', this.drawGrid, this);
},
drawGrid: function(){
var selectedType = this.typeComboBox.getRecord();
Rally.data.ModelFactory.getModel({
type: selectedType.get('TypePath'),
success: function(model){
if(this.grid){
this.grid.reconfigureWithModel(model);
} else {
this.grid = this.add({
xtype: 'rallygrid',
renderTo: 'tableDiv',
columnCfgs: [
"PortfolioItemTypeName",
"FormattedID",
"Name",
"PlannedStartDate",
"PlannedEndDate",
"PercentDoneByStoryPlanEstimate",
"PercentDoneByStoryCount"
],
model: model
});
}
},
scope: this
});
}
});
Rally.launchApp('PortfolioItems', {
name: 'Portfolio Items'
});
});
非常感谢您的帮助!谢谢 对于这种情况,此请求会定期出现。这种行为是经过设计的,但您应该能够通过在sharepoint控件中嵌入一个iframe来解决它,该控件指向应用程序的html文件,该文件来自同一服务器上的某个位置。这对你有用吗?我不知道该怎么做。目前,我们正在内容编辑器Web部件中加载一个JS(部分html)文件。这是我们的供应商能够让它在没有跨站点脚本错误的情况下为我们工作的唯一方法。我们试图附加到的div在该文件中。啊。是的,html文件肯定需要托管在同一个域上。我想我不能完全确定在sharepoint中可以做什么和不能做什么。我知道人们已经成功地将iFrame嵌入到其他系统中,比如confluence,这就是我在这里建议它的原因……如果您可以从同一服务器提供外部html文件,您可以尝试这样嵌入它:
Embedded app test