Add text to change the field

Hello

I display a text field on a screen. Is it possible to add the user to add text to the editfield, even if the focus is on a button. So, no matter where the cursor is on the screen if the user types the text it is automatically sent to the editfield. Is this possible?

Thank you

I think it's possible.  You can issue a setText at any time update the field.  The trick is to get and then the interpretation of characters.

To give you an easy solution. say that you override keyChar to your screen.  This will get the control regardless of the field is in fact in short.  So, you could do something like this (untested, no compiled code, as only learning tool):

{} protected Boolean keyChar (char c, int status, int time)
String current = myEditField.getText ();

String = new current + c;

myEditField.setText (new);

Returns true;

}

There are problems with this, for example, how do you get back?

Another option is to replace keyDown and if the focus is not on the EditField, set it to the EditField.  Then the EditField will receive all methods keyChar itself and treat them properly.

Tags: BlackBerry Developers

Similar Questions

  • PDF fillable where the customer can add text AND change the fonts?

    Hello

    I would like to be able to provide my clients with editable poster templates. I created in InDesign posters, with a large white space in the middle where they can add their own texts, and when they're done, they can send them to the printer. The problem is, I just want to give them - in PDF print quality, so they don't mess up my share of the design (in addition, they are not sufficiently advanced to use indesign or illustrator or something like that).

    I tried implementing a PDF file using a text field, but it won't work. When the customer type in the text field, they will not be able to change the size of font, color, weight, etc.

    Is there some sort of 3rd party plugin that will allow me to create PDF files to fill live where the customer can indeed choose their fonts & things when they fill in their info?

    Thank you!

    Bernd: rich text only allows to apply bold, italic, exposing. It does not allow the user to make the text larger or to change the font.

    When I type ctrl-e in the area I can change the font and the font size.

  • EasySign: what I can or cannot change the fields to fill?

    Is it just me, or is Acrobat EchoSign a hostile user to the garbage piece? I use reader 10.1.3. This is a form that I would complete and perhaps 'sign' with a TIFF of my signature, but first I have to type in some areas. Arrived at this point took me 20 minutes this morning:

    Acrobat EasySign.jpg

    (Sorry for the fur JPEG;) Forums Adobe informed me passively after that I tried to save three no-anti-aliasing 'content types' that he would only accept JPEG format.)

    If you examine the name under the section 'INFO' field, you will see three blue spots reflecting three multiple selections no region of text boxes in the list to the right. These objects are the result of my patiently left click the i-beam on my name in order to change the text that I entered in each field. Whenever I did, I would like to briefly see a blip appear under the i-beam, but he would not let me change my text. The blip, of course, was a text box of length zero being created. I persisted because at some point given, I swear I saw an arrow icon and it let me do a selection in blue on a parcel of my text, but then for some reason any when I typed nothing happened, then the apparition disappeared and I couldn't repeat it. And it is only after a few minutes, when I started to play with a right click on a text field, I discovered the "list of comments" so needless of me in frustration.

    There are now dozens of these mini boxes everywhere in the sheet (just look at how the "list of comments" has 86 entries instead of the 12 that actually contain text). But it means I can't change something when I finished a text, isn't it? If so, why not? Why is he not clear for me, a sophisticated user? Why the bizarre and unpredictable behavior? Or I'm a sort of silly, not having found the correct incantation? Maybe an Adobe firewing priestly programmers or myriads now will enlighten us all, tacitly suggesting that it's just my stupidity, because they knew the blessed Secret their first time.

    I have fairly exhaustive sought a solution to this and have so far found nothing, but maybe it's because I've budgeted only 45 minutes for this potential simple task. Am I'll have to check out this file in Illustrator, or print it out and post it?

    Twenty years ago, I was probably the first or second person outside mountain view to show the alpha of the carousel. Since that time - and despite having occupied hope repeatedly - I still can't easily fill a document online without heartache. Why can't I edit a field? What I have to do when I want to edit a multi-line field? My workaround over the years have range from every possible thing you can imagine, the scan in Photoshop or Illustrator, Quark or InDesign; in the fields of the blind and double-exposures on a printer laser. the glue; even to hack the fields the PostScript with setfonts and the movetos shows.

    I spent 40 years in the graphic arts; half of them I've struggled with Acrobat, on some products work quite complex with the features of questionable when delivery shoehorned in PDF format. When it comes to simple single-page monochrome form letter/A4 - the portable document more abundant on earth - we are now in Acrobat v10 and all I want to do is easily a form, sign and return by email and I still can't.

    Why is life so much harder now than when I could run that through a typewriter, Adobe? What you really do about it for billions? How much more precious moments of our lives that you're going to waste?

    (P.S. What difference is almost a day: hours after this - and just before submitting this article - I myself have discovered the cast with a few minutes more far experiments most already spent. Now, I can recreate the arrow and change the field. It's really not hard, but it's far from clear is the furthest thing of the good technique of the user interface. However, I know now the blessed Secret, or at least a part of it. But it does not change my position above. You can guess why, O Adobe priesthood of unbearable preachy? If it takes a programmer experienced hours to learn the combination, what makes you think to Grandma and Grandpa never go figure?)

    I have to say that a large part of the problem is due to the agency providing the form. This would have worked much better if they had taken the time to add real interactive form fields so that you wouldn't have to worry about the typewriter tool. It's actually good that Adobe provides that as an option of last resort for PDF files that look like forms. It of a little silly to provide a PDF of a form and makes it not to fill, especially since it's possible since Acrobat/Reader 3. This particular form would be easy to implement with fields.

    Regarding the file TIFF is not not qualify, it is worth looking at in more. Consider filing a bug report.

  • Dynamic text: gradually change the size of font that you type

    Always present in my project. I need help with that.

    I have a dynamic txt connected to a keyboard on the screen, and I need the police to shrink in size according to the number of characters that you enter.

    Looks like it could be a simple algorithm, but I have no idea where to start.

    any help?

    If you use a keyboard on the screen, I'm not sure that a listener CHANGES will work if it involves adding text to the textfield with code... but kGlad know better on this subject.  If she does not have a code, code adds text can have the task of checking the length right after each character is added.

    To check the number of characters in the textfield by its length property, essentially use something similar...

    numCharacters = yourTextfield.length;

  • JavaScript how to get / change the field (object) TYPE (no access or mandatory)?

    Hello

    I would like to change or at least to get the TYPE of a field/object field

    Reason: I have a function in my script object that needs some things if the given parameter is a text field or button

    {myFunction (Object)}

    If (type is button)...

    ClassName is relative to any use. He always comes = field

    Could someone provide a code please?

    Hello

    This script could help show how to get the type of field.  I'm reasonably show that he originally site of Stefan Cameron, http://forms.stefcameron.com/, but can not find it now.  Basically if you have a 'field' then ui.oneOfChild.className will give you the type of field.

    I don't think you'll have a chance to change the field type.  I think that you need to have all the field types you want on the form and that they are visible when necessary.

    function listAllFields (node)
    {
    If (node.className == 'exclGroup' | node.className == "subform" | node.className == 'subformSet' | node.className == 'region')
    {
    for (var i = 0; i)< node.nodes.length;="">
    {
    If (node.name! = "ErrorIconSubform")
    {
    childNode var = node.nodes.item (i);
    listAllFields (childNode);
    }
    }
    }
    Else if (node.className == "field")
    {
    Switch (node.ui.oneOfChild.className)
    {
    case "button":
    Console.println ("button:" + node.somExpression);
    break;

    case "checkButton":
    If (node.parent.className is "exclGroup")
    Console.println ("RadioButtonList:" + node.somExpression);
    on the other
    Console.println ("checkbox:" + node.somExpression);
    break;

    case "choiceList":
    var oUITypeNode = node.ui.resolveNode ("#choiceList");
    If (oUITypeNode.open is "userControl")
    Console.println ("DropDownList:" + node.somExpression);
    on the other
    Console.println ("ListBox:" + node.somExpression);
    break;
      
    case "dateTimeEdit":
    Console.println ("DateTime:" + node.somExpression);
    break;

    case "imageEdit":
    Console.println ("Image:" + node.somExpression);
    break;

    case "numericEdit":
    Console.println ("digital:" + node.somExpression);
    break;

    case "passwordEdit":
    Console.println ("password:" + node.somExpression);
    break;

    case "textEdit":
    Console.println ("Text:" + node.somExpression);
    break;

    case "signature":
    Console.println ("Signature:" + node.somExpression);
    break;

    case 'barcode ':
    Console.println ("bar code:" + node.somExpression);
    break;

    by default:
    unknown field type
    break;
    }
    }
    }

  • I want to add text box to the form

    Hello

    Please help me to add text box to the form

    If the user can enter text

    I added the button with success

    cann't just add textbox

    Thanks gerard

    It works

  • Address book - blackBerry Smartphones change the field "synchronize using.

    Hello world

    I recently changed my primary Gmail account on my blackberry (from [email protected] to [email protected]).

    I have a problem with sync'ing with my address book.

    All of my old contacts are synchronized via [email protected]

    And now, I would have them Sync with [email protected]

    In every Contact form, I discovered there is a synchronization field to aid which is filled with the google account. Unfortunately, you cannot change this field.

    Y at - it an easy and fast way to mass - change (the field sync using) all my old contacts sync with my new gmail account?

    I tried with importers and exporters of gmail to gmail, but I lose my contacts photos. I cannot accept this solution because I have more than 500 contacts and 90% of them have an image.

    So I'm asking if someone has an idea to solve this problem.

    Thanks in advance

    Thanks for your reply.

    But I decided I'm going to do it by hand and transfer between gmail via vcf file transfer account.

    It's a real pain in the * because I know that have to redo all the links between linkedin/facebook and my address book. And also photos of contacts. It would have been very happy to be able to mass change the field "to sync using"

    There is therefore no real solution to solve my problem except to waste a lot of time by hand.

    But I'll post another topic for a question than a problem with the synchronization of contacts and photos

  • Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem

    Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem is it gets rid of color and shows that the peak through the text.  I wanted a draft of the text with the picture.  Is this possible?

    Thank you

    Peter

    You're welcome, Peter.

  • How to edit a .ai (converted to a smart object) in photoshop.  I want to change the text and changed the text and graphics

    In photoshop, how to change a file .ai (converted to a smart object)?  I want to change the text and changed the text and graphics.

    Total beginner, so need help.

    Thank you very much.

    That must be edited in Illustrator.

  • How to add text and change my PDF file?

    How to add text and change my pdf file

    Hi pilothorse,

    To edit a PDF file, you must use Acrobat. If you do not have Acrobat, you can try it free for 30 days. See www.adobe.com/products/acrobat.html for more information.

  • Need to change the field Office in the list of values

    Hi guys,.

    I need to change the field Office in LOV where form of people, customer actually requires some preset values in this area, through customization is possible? or not?


    Kind regards


    Ssali

    As I understand you cannot change a field of LOV using the Persolization form. Yes, you can use the de FACTO forces for the same reqirrment.

    Thank you

  • How to change the field type property

    Dear all.

    I would change the field property type registered user - optional read-only under certain conditions.

    tired, like folloing, but the field is still editable.

    Please let me know how to change it.

    CASES1:

    Row1_Num1.LockType = "readOnly";

    CASE2:

    Row1_Select.ReadOnly = true;

    Try to use TextField1.access = "readOnly";

    Jasmine

  • changing the display of a text view of the field only

    Hello

    I have a zoom of report that connects to the form... when my user clicks on the link, that he takes them to the screen, as I have a few fields, some of them are only for display (for example, the customer name, etc. that I don't want my users to change) and some text (e.g. customer address phone number is etc.) which allows my users enter/change information... everything works fine when we go through the report associated with the form...

    My problem is that when I allow my users to create a new record (by pressing a button) he takes them in the same form (obviously without data pre-populated for them - I just clear cache at the click of a button)... now, in such a situation when users try to create a new record, I want all the editable fields...

    for example, my 'customer name' field must be changed for new record but it should be "View only" when I'm going through the linked report...

    Please advice how to do it...

    Thank you

    Tal

    Hey Tal,

    Create a page element for example form_mode on your add/change form. When the user clicks the Add button or edit, you pass value 'Add' or 'edit' to the form_mode element. Then, on your form, you should have a javascript process called the loading of the page. The javascript code will do the readonly field or editable depending on the button pressed.

    Kind regards
    Zahid

  • cannot add emoticons or change the color of the text when you write a message to send

    When I type a message to send. I can't change the color of the text, or if I add an emoticon. I can change the size of the letter, featuring bold, italic and underlined.

    If you mean an e-mail message, Firefox is not 'do' by email.

    If you use Firefox to access your e-mail, you use "webmail". You must seek assistance from your service provider or a forum for this service.

    If your problem is with Mozilla Thunderbird, let know us and we can move this thread to the queue of Thunderbird. This issue is currently in the queue of Firefox to get answers.

  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

Maybe you are looking for