Rally text field access issue

126 Views Asked by At

Developing custom HTML app using Rally: I want to present a text box and pull value from the enterd data in it. How do i access the text in a rallytextfield while creating a custom html app using App SDK ?

2

There are 2 best solutions below

0
On

Make sure you use the API docs provided - you can find information about a rallytextbox here.

Specifically, there is a method called:

getValue()

That you will find in the documentation - I think that is what you are looking for.

0
On

Here is a piece of code which is causing problems on this: How do i access the value of the datepicker, i tried the .getValue. It is not able to get the value.Please help

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