-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js.indented
More file actions
57 lines (54 loc) · 1.61 KB
/
App.js.indented
File metadata and controls
57 lines (54 loc) · 1.61 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
_all_my_fields = [
"FormattedID",
"Name",
"ScheduleState",
"ObjectID",
"DirectChildrenCount",
"DefectStatus",
"Project",
"Iteration",
"Release",
"TaskStatus",
"CreationDate"
];
Ext.define( 'CustomApp',
{ extend: 'Rally.app.App',
componentCls: 'app',
launch: function() // Lanched by Rally App framework
{
console.log("JP's BasicRallyGrid app running...");
this._loadData();
},
_loadData: function() // Get data from Rally
{
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
}
);
},
_loadGrid: function(myStoreOfStories) // Create and display a grid of given stories
{
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