Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

TextField with ANY option can’t accept the some of the characters if DateField added to the form in X2-01 (Known Issue)

From Wiki
Jump to: navigation, search
Article Metadata
CompatibilityArticle
Created: bandarap (23 May 2012)
Last edited: hamishwillee (09 Aug 2013)

Contents

Overview

TextField with ANY option can’t accept the some of the characters (characters outside the ITU-T layout) if DateField added to the form

Description

Add TextField with ANY option to the form and type any character on Querty device and it works fine, but when DateField is added to the form, TextField behaves differently. Some of the characters outside the ITU-T layout area (Q,W,E,A,S,D,Z,X,C,K,L,I,O etc.) are not accepted, but characters on ITU-T layout area accepts. It happens only on Querty devices (X2-01 etc.) based on Series 40 6th Edition (initial release).


How to reproduce

Launch the midlet which contains following code and type the characters on Querty keyboard specially out side the ITU-T area. You can see that all characters are accepted.

Select "AddDF" command, adds DateField to the form. Again type characters out side the ITU-T area and see that only some of the characters are allowed.

public class HelloWorldMIDlet extends MIDlet implements CommandListener {
 
private Command addCommand;
Form f;
 
public HelloWorldMIDlet() {
}
 
public void startApp() {
Display current = Display.getDisplay(this);
f = new Form("test");
 
TextField tf = new TextField("text Field", "", 50, TextField.ANY);
f.append(tf);
 
addCommand = new Command("AddDF", Command.OK, 1);
f.addCommand(addCommand);
f.setCommandListener(this);
 
current.setCurrent(f);
}
 
public void commandAction(Command command, Displayable displayable) {
 
if (command == addCommand) {
DateField df = new DateField("Date Field4", DateField.DATE);
f.append(df);
}
}
 
public void pauseApp() {
}
 
public void destroyApp(boolean unconditional) {
}
}

Solution

It is fixed in next Querty devices(Asha 302 etc.) based on Series 40 Developer Platform 1.1.

This page was last modified on 9 August 2013, at 04:53.
34 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×