Focus on input text

If I have this code:

			{ view: 'form',id:'myform',
				data: [
					{ type: 'text', name: 'edtUPC', label: 'UPC', value: '', position: 'label-left', inputWidth: '200', labelWidth: 100, align: 'left', labelAlign: 'center', id: 'edtUPC'},
					{ type: 'form_button', name: 'btnSearch', value: 'Search', align: 'left', width: 150, id: 'btnSearch', sameLine: true },
                    { type: 'label', label: 'Nome do produto procurado', align: 'center', popup: '', click: '', id: 'productname'}
				], height: 100
			},

how to do something like this:

$$('myform').('edtUPC').focus(); I need to focus the field....

Existing version has not such ability, starting from oncoming 0.6 there will be configuration property for form elements, which will allow to define, which one of them need to have focus by default.

Do you have any idea when this next version will be release ?

Next build (v0.6) will be released till the end of week.

Hi,

I was wondering if this has been implemented yet? If it has been, could you give us an example?

Thanks!

You can use in config

{ type: 'text', name: 'edtUPC', focus:true, ...

and when necessary call
$$(‘form’).focus()

it will set focus to element of form with focus attribute