使用Rally开发自定义HTML应用: 我想呈现一个文本框,并从其中的输入数据中提取值。如何在使用App SDK创建自定义html应用程序时访问拉力文本字段中的文本?
答案 0 :(得分:0)
答案 1 :(得分:0)
这是一段导致此问题的代码: 我如何访问datepicker的值,我尝试了.getValue。它无法获得价值。请帮助
Ext.define('CustomApp', {
extend: 'Rally.app.App', componentCls: 'app', id: 'appid', launch: function () {
var datepickerfrom = Ext.create('Ext.Container', {
id: 'datepickerfrom',
items: [{
xtype: 'rallytextfield',
fieldLabel: 'Enter text: ',
labelWidth: 10
}],
renderTo: Ext.getBody().dom
});
this.add(datepickerfrom);
button = {
xtype: 'rallybutton',
text: 'Generate Report',
handler: function () {
console.clear();
console.log(datepickerfrom.getRawValue());
},
};
});