Get the text in the Edit field


In my Application, I add a check box and a label field and a field change a grid field Manager. Then this network domain manager, I add several times in Vertical field Manager. So it's looking like list of items. Now, when I checked the box five, trying to get the text of the corresponding edit field.

This is the code for the domain network manager:

int c[] = {screenWidth/6, (screenWidth)/3, (screenWidth)/2};
        gm = new GridFieldManager(c, Manager.VERTICAL_SCROLL);
        Logger.out("Grocery", "Here it is coming"+i);
        cbfChecked = new CustomCheckBoxField();
        cbfChecked.setChangeListener(new FieldChangeListener()
            public void fieldChanged(Field field, int context)
                if(checked[i] == false)
                    checked[i] = true;
                else if(checked[i] ==  true)
                    checked[i] = false;
                    Logger.out("Grocery", "It is UnChecked" +checked[i]);
        Logger.out("Grocery", "Adding first Label Field");
        LabelFieldCustom lfFrom = new LabelFieldCustom((String) m_vtrItems.elementAt(i),Color.BROWN,FONT_FAMILY_0_SF_AS_16,Field.FIELD_LEFT);
        Logger.out("Grocery", "Adding second Label Field");
        efcAmount = new EditFieldCustom(Bitmap.getBitmapResource("dob_text_box.png"), 25);
        efcAmount.setMargin(new XYEdges(30, 0, 0, 0));
        return gm;

Here I add the grid domain manager several times:

for (int i = 0;i < m_vtrItems.size();i++)

            vfm.add(new SeparatorField(SeparatorField.NON_FOCUSABLE));


Here is the snapshot of my screen:

Please help me.


You can access the field by index (prone to errors if).
or you could save your fields in a data structure, such as a hash table, with the checkboxfield as key to the editfield as value.

Tags: BlackBerry Developers

Similar Questions

  • Menu appears on touchevent click EditField. CONSUME_CLICK is not an option to the edit field.

    The Menu appeared on a touchevent click an EditField.  CONSUME_CLICK is not an option to the edit field.

    He always did, but I still have to figure out what caused change to happen.  Maybe because I went to GridFields.  Anyone has any ideas on how to avoid that the menu when I use a touchscreen device and click the EditField?

    Thank you!

    When you override navigationUnclick, return false - return super.navigationUnclick (status, time). It is a cleaner way to do it and it saved my day several times.

  • I pay the annual fee, and I don't get the edition... Why...

    I pay the annual fee, and I don't get the edition...

    I suspect that you will need Acrobat (Standard or Pro). You can purchase a license (perpetual or subscription). Download the installation program, then let it install the desktop application.

    Acrobat is not a 'cloud' application or mobile device (Finally, a computer laptop/netbook/ultrabook/surface pro / thingy is 'mobile' - but no tablets)

    Be well...

  • In the edit field

    Hi all

    can someone help me in editing field, enter text when the field width fill then is not to go to the next line.its decerese fontsize and decrese... time to come when the font size of text would be constant.i do customize edit field and override the paint method in this... How to set the size of police... so that his decrese when full field width and text do not go in the following line


    thx a lot its work for me

  • Query to get the flex field values description.


    Entering invoices-> all the Distributions screen 'Special Mentions for the India' is here. Here we enter the value for the field TDS - tax. I want to get the list of values for TDS - tax in a query.

    Can you please help me.

    Thank you


    where 'jtc.tax_type =' TDS

    and jtc.section_type = 'TDS_SECTION. '

    and org_id =: inv_sum_folder.org_id

    and jtc.section_code in


    Select section_code

    of jai_ap_tds_th_vsite_v

    where vendor_id =: inv_sum_folder.vendor_id

    and vendor_site_id =: inv_sum_folder.vendor_site_id


    order of jtc.tax_id

  • How do you get the edition of students cloud adobe on my laptop and desktop

    I was told I could get the software on two computers, and when I try to download on my desktop it is not allowing me.

    Download the desktop app cc to your desktop, download Adobe Creative Cloud apps | CC free trial Adobe

  • How to paste text in ANY editable field (e-mail, sms, browser, contacts address bar / any other application)


    Can anyone help me please with the following questions:

    1. once I have add a menu item to help

    ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM, myMenuItem);

    I am able to access an instance of net.rim.blackberry.api.mail.Message (when I'm in the e-mail editing mode) and put the content in the subject / body of the email, but it was mostly a proof of concept for me.

    What I really want to be able to do, it's automatically access the instance of any editable field in any (RIM / part 3) app that the user cursor is now. When the focus is on something that is not editable, then my menu item should not appear in the menu.

    In addition, it is important for me to know exactly where the cursor is. For example if the cursor is in the middle of the text, then I want that my extraordinary paste paste of stuff there. The same for the selected text - it needs to be replaced.

    Basically I want my menu Paste Special feature works exactly like 'Stick', unless I want to offer which should be pasted.

    2. Apart from curiosity, what are we supposed to go back to the

    public Object run(Object context)

    method? For now, I'm doing my treatment based on the type of control context and make the treatment on it and everything just return null (which works well), but I don't know I'm on some features.

    Never done this, but looking at the API and remembering what simon_hain said when asked a similar question, I think it goes like:

    You can get help from the active screen

    UiApplication.getUiApplication () .getActiveScreen ();

    You can get the Menu for a screen to help

    . getMenu();

    You can browse the menu for help

    . getItem()


    . getSize()


    I think that 'toString' will give you the message, then

    . Run()

    to run it.

  • Change the edit field

    Hello! All the

    How can limit us just a field change a width (say 70) and if user enters anything beyond the width while the text should scroll automatically save to make place for the user to enter text more...

    How to get there?

    If you enter "editfield scroll" in the search box, you get a lot of results.
    I guess that most link to this article:

  • Get the merge fields in the printed documentation

    I print my help from Robohelp 11 on Word document and I get what looks like merge fields in the text, usually in the topics.

    I think they can be keywords index.

    How can I get these fields out of my document?

    They do not remove if I select and press Ctrl F9 keys.

    Thank you.

    Looks like you have display fields enabled in Word. Turn that off and it should be OK. If the paragraph marks are also displayed, their deactivation may be sufficient.

    See for creating tips and RoboHelp


  • How can I get the username field to automatically populate when asked to enter my credentials for the admin?

    I'm under El Capitan version 10.11.5. This is mac from my employer, which they made me an administrator for. On my mac personal home, the user name field is automatically filled in when the box appears asking an administrator user name and password, but on mac from my employer, I have to type at a time, whenever he appears.

    I can't find an option in the auto-complete settings and for the mac save my admin username it when you request permissions. Anyone else know how to change this?

    Maybe this needs a clarification:

    IF you are connected to a user admin "Your Own" account, and you are prompted for an admin password,

    Well, your user name will already be pre filled in the user name field, waiting for your own admin password, on the account that you are already connected.

    BUT, if another user is connected to their own user account, and a dialog box appears asking an admin password,

    Well, this pop-up dialog box will be empty if the current user is not an admin, or pre populated with the user name if the current user is an administrator.

    So, NO, I'm not aware anyway to do a random OTHER admin appears automatically in the box pop up when another user is logged on their different user account.  On your personal Mac at home, you are connected to your own account, (most likely, you are the admin), and when a box pop up on your own account is displayed asking admin credentials, your own user name will appear here.

  • Get the unwanted fields - inappropriate length - Table

    Hello Experts,

    SELECT     COUNT ( * ) FROM mtl_system_items_b; 
    -> 664072 records
    In fact, the value of the segment1 should be 9. But there a few unwanted characters and a few extra characters.

    If I use the following query to get all the error values of the segment.

    Please confirm is this rite of query?
    SELECT     segment1
    FROM          mtl_system_items_b
    WHERE      LENGTH (segment1)  != 9;
    If there is no other better query thanks to...

    Thank you...

    In this case, the! = or <> must be correct. that is how you formed the query.

    Kind regards

  • Get the computed fields to be empty, except if used


    I just created a purchase order and all works well.

    However, the right column that rises to the top of all the elements of line, is a calculated field and shows "$0.00" even if this line is not used.

    Is it possible to say to these fields, if they are $0.00 make the type invisible or white?

    Thank you... I've provided a snapshot, so you can see the fields list.


    Picture 7.png

    If you do not use JavaScript for the calculations, you can add the validation script customized for each of the areas:

    Field blank if it's value is zero

    If (+ event.value = 0) event.value = "";

    If you are using JavaScript, you can do something similar to the calculation script.

  • get the date field to display the time

    I have a date field in my form. I want to capture the date and time, but it let me only on the date of entry.

    How can I change this?

    In the field property, in a property called Data Type , it will be the DATE on your side replace DATATIME and set the format DD-MON-YYYY HH24:MI:SS then try...

    BTW Hi ;)


  • How would I get the text box


    I want to use a text box, how can I get it? in the edit field or field of basic edition are all just displays as a line, but I need like a box

    Try this,

            BasicEditField txtuser = new BasicEditField("", "", 28, BasicEditField.FILTER_EMAIL)
                private int iRectX = getFont().getAdvance(getLabel());
                private int iRectWidth = Display.getWidth() - iRectX - 2;
                public int getPreferredWidth()
                    return Display.getWidth();
                public int getPreferredHeight()
                    return 30;
                public void layout(int width, int height)
                    super.layout(width, getPreferredHeight());
                    setExtent(width, getPreferredHeight());
                public void paint(Graphics g)
                    g.drawRect(iRectX, 0, 248, 20);

    IT looks like what you want.


    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • Get the value of the title field

    My question is simple. Here's my scenario.

    I have a check for profile, with an editable title field and a list of options. The user selects a value in the option list and entered a title. When he submits the form, the title of the content check-in must be derived from the value of the option list + the value of the field title. The derivative title must be the concatenation of the value of the option list, and the value of the field title.

    My question is how to get the value of the field title using the script of the OIDC? I have a rule with the field of dDocTitle and its derivative field, I have an idoc script that displays the value of the option list in the spin-off title field. I only need to concatenate the value of the editable field title entered by the user.

    Thank you. I use UCM 10 g.

    This can be done with rules and profiles of the school boards and derived values.

    If the user enters a title in the field of dDocTitle (this is mandatory) and if you have another field of metadata with a menu drop-down (as conceptual dDocType) you can use the Configuration Manager (rules and profiles) take the value of dDocTitle and dDocType and when checked (it not shown to the user after logging) she'll concatenate.

    in the custom box (you may need to do this because of the wrong inserts quotes with our variables) make sure that it looks like this
    <$dprDerivedValue=dDocTitle &="" ddoctype$="">

    Notes that may be of interest
    How can define you a value derived in a rule using Idoc Script to call a service? (Doc ID 833953.1)
    Who wins: rule or a set of default metadata about a file? (Doc ID 798653.1)

Maybe you are looking for

  • I would like to hide or disable the close button (or to act as to minimize)

    I want to make it harder for the closing of Firefox. I'm used to hitting Close when I finish what I'm doing. But I recently started to let Firefox to save passwords. Every time I start Firefox it ask the master password. I would avoid this problem by

  • Apple id lock

    Hello My mother has somehow locked her Iphone and now it says: this phone is bound with the apple ID and is locked. To unlock, it go to I went there went apple ID and password and then gives massage to unlock the account. It gives

  • I can't connect to the internet to activate Windows. Is there another way to do it?

    Need help to activate windows xp. Hello all, I use t-mobile internet, because its dongle I can not connect to activate my windows, is it posibillity to get the code from another computer or something then enter in to my old pc. Thank you and sorry fo

  • VPN client disconnects after 2 hours

    workstation running XP SP2 and installed the vpn client and cisco 1721. client VPN connected and after 2 hours, it cuts details of the journal 1203 14:25:04.125 07/06/06 Sev = Info/4 IKE / 0 x 63000017 Marking of IKE SA delete (I_Cookie =

  • Is it possible to replace an empty cartridge on the Photosmart D7360?

    I have things that I want to print that requires only the black ink, but my printer says that I "can't" print anything about this until I have replaced the yellow cartridge empty. Everywhere is closed and I REALLY need this kind of thing printed for