Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 17
Registered: ‎12-05-2011
My Device: BlackBerry 10 Dev Alpha
My Carrier: Not provided

Manually typing into a DateField

Hi folks,

 

According to the docs:

 

If created in Field.EDITABLE mode, each supported part acts as a focus position and can be edited. The text values behave like a ChoiceField (eg. months, weekdays). The numeric portions behave a bit like a choice field, a bit like an edit field: ALT+roll increases or decreases the value as with a choice field; typing appends the new digit and throws away as many digits at the start as it must to make the number valid again. 

 

Mine don't appear to work that way, though. If I type '12' to get the 12th of the month it will first selected '1', and then '2' so I end up with a date of 2 January instead of 12 January.

 

I'm constructing the field as below:

 

		_date = new DateField("", _expenseItem.get_date(), DateField.DATE | Field.EDITABLE);
		vfmGenDet.add(_date);

 Looking at the native Calendar application you're able to type '12' to get '12', but not in my field - what am I doing wrong?

New Developer
Posts: 17
Registered: ‎12-05-2011
My Device: BlackBerry 10 Dev Alpha
My Carrier: Not provided

Re: Manually typing into a DateField

.. bump!

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Manually typing into a DateField

What OS Level are you developing on.

 

From memory DateField changed characteristics at arounf OS 4.6?