-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
58 lines (47 loc) · 1.4 KB
/
App.js
File metadata and controls
58 lines (47 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
_all_my_fields = [
"FormattedID",
"Name",
"ScheduleState",
"ObjectID",
"DirectChildrenCount",
"DefectStatus",
"Project",
"Iteration",
"Release",
"TaskStatus",
"CreationDate"
];
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
// Lanched by Rally App framework
launch: function() {
console.log("JP's BasicRallyGrid app running...");
this._loadData();
},
// Get data from Rally
_loadData: function() {
var myStore = Ext.create('Rally.data.wsapi.Store', {
model: 'User Story',
autoLoad: true,
listeners: {
load: function(myStore, myData, success) {
console.log("got data from store: ", myStore, myData, success);
this._loadGrid(myStore);
},
scope: this
},
fetch: _all_my_fields
});
},
// Create and display a grid of given stories
_loadGrid: function(myStoreOfStories) {
var myGrid = Ext.create("Rally.ui.grid.Grid", {
store: myStoreOfStories,
columnCfgs: _all_my_fields
});
this.add(myGrid);
console.log("what is this? ", this);
}
});
//the end