setSelectedIndex (index) on a ListField call does not set the focus to the index.

Hi all

I have a ListField I show in a popup. When the listField is displayed, the focus is not set to the game past index.

Can someone please tell me what is missing here:

ListField choiceList = new ListField() {
    protected boolean navigationClick(int status, int time) {
    int index = this.getSelectedIndex();
    fieldChangeNotify(0);
    FSApplication.getUiApplication().popScreen(FSApplication.getUiApplication().getActiveScreen());
    return super.navigationClick(status, time);
}
choiceList.setChangeListener((FieldChangeListener) uiFilter);
choiceList.setCallback(new PopUpListCallback());
add(choiceList);
choiceList.setSelectedIndex(6);
choiceList.setSize(choice.length, _selectedIndex);
choiceList.setVisualState(VISUAL_STATE_ACTIVE | VISUAL_STATE_FOCUS);

set the size and choices first, then the selected index.
If this does not work, try invokelater for the index.

Tags: BlackBerry Developers

Similar Questions

  • Black square Popup artifact does not set the 5.02...

    I just downloaded and installed the newly released 5.02 hoping it would address many issues.

    A question is a video artifact that has been detailed by many users since the release of version 5.  A small square black pop up as you move your mouse over any window... and then immediately disappears.

    This problem has NOT been resolved in version 5.02 on my system.  I waited 10 weeks for this update... and it remains a problem.

    Very disappointed.

    Can you check your VM's vmx file and see if the following entry is present?

    mks.noHostCursor = 'TRUE '.

    If not, add it.

    If this does not resolve the issue,

    disable the mouse shadows "Enable pointer shadow" tab mouse pointers.

    I'm assuming that you have already completed the basic steps such as ensuring that vmtools update.

    If the problem persists, disable 3d acceleration.

    Let me know the results.

    Also, raising a support request for it also discouraged.

  • Oracle query of relay and access function call does not return the list

    Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.

    I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?

    The application of relay and looks like this

    Select * from fn_testvalues of the double

    Once that is running in oracle.

    To create the test table and 2 functions below.

    CREATE TABLE t_values (MyValue varchar2 (10));

    Table created
    INSERT INTO t_values)
    SELECT 'Merced' c1 FROM dual UNION ALL
    SELECT "Pixie" dual UNION ALL
    SELECT "452" DOUBLE);

    3 lines inserted
    FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
    n_val NUMBER;
    BEGIN
    n_val: = to_number (p_val);
    RETURN 1;
    EXCEPTION
    WHILE OTHERS THEN
    RETURN 0;
    END;
    /

    Feature created

    table test:
    SELECT val, isnum fn_isnum (MyValue)
    OF t_values;

    VAL ISNUM
    ---------- ----------
    Merced 0
    Pixie 0
    1 452

    Now the function that is called in the application of relay:

    create or replace function fn_testvalues
    sys_refcursor is back
    RC sys_refcursor;
    Start
    Open rc for
    Select t_values.*, fn_isnum (MyValue) t_values IsNum;
    Return (RC);

    end fn_testvalues;

    Why not?

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>create or replace view bb
      2  as
      3    select *
      4    from emp;
    
    View created.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select * from bb;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1815       1400         30 SALESMAN
          7788 SCOTT      ANALYST         7566 19-APR-87     598.95                    20 ANALYST
          7839 KING       PRESIDENT            17-NOV-81       7260                    10 PRESIDENT
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
          7876 ADAMS      CLERK           7788 23-MAY-87     159.72                    20 CLERK
          7900 JAMES      CLERK           7698 03-DEC-81     1379.4                    30 CLERK
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20 ANALYST
          7934 MILLER     CLERK           7782 23-JAN-82     1887.6                    10 CLERK
          7566 Smith      Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
          7698 Glen       Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
             1 boock
    
    12 rows selected.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select *
      2  from bb
      3  where empno = &eno;
    Enter value for eno: 7521
    old   3: where empno = &eno
    new   3: where empno = 7521
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    

    Kind regards.

    LOULOU.

  • Printer does not print in PDF format. Does not set the printer as the default printer.

    I have windows vista 32 bit and quickbooks pro, at first we could not open quickbooks, called and had to reinstall, then the printer will print not in quickbooks. The printer does not green check mark display when you set as default printer.  We have uninstalled and reinstalled the printer it will print but not in pdf.  Also, there is a problem with updates, error 2 codes are coming and will not be installed, 646 (update of microsoft office) and 643 (update net framework)

    Hi Bobob23,

    Try the suggestions in the article below.
    http://kb2.Adobe.com/CPS/316/316508.html

    REFERENCE:

    When you try to install an update for .NET Framework 1.0, 1.1, 2.0, 3.0 or 3.5, you may receive Windows Update '0 x 643' error code or error code Windows install "1603".

    Code error '0 x 80070646', '646', or '1606' when you try to install the Office updates

    Bindu R - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • OAMessageDateFieldBean does not set the value

    Hi all

    I have a SearchQueryRN and I'm failing the date to the current date and I get a Null pointer Exception. Please let me know.

    Here is my CO

    {} public processRequest Sub (pageContext OAPageContext, OAWebBean webBean)

    super.processRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    oracle.jbo.domain.Date = currentJvmDate

    am.getOADBTransaction () .getCurrentUserDate ();

    SimpleDateFormat s = new SimpleDateFormat("dd-MMM-yyyy");

    System.out.println (currentJvmDate);

    String AsofDate = s.format (currentJvmDate.dateValue ());

    System.out.println (AsofDate);

    OAMessageDateFieldBean AsofDateBean =

    (OAMessageDateFieldBean) webBean.findIndexedChildRecursive ("SearchAsOfDate");

    AsofDateBean.setValue (pageContext, AsofDate);

    If (AsofDateBean == null) {}

    System.out.println ("inside If" + AsofDate);

    AsofDateBean.setValue (pageContext, AsofDate); Get a NullPointer Exception

    }

    }

    The page definition

    < oa:simpleSearchPanel >

    < oa:header text = "Search" id = "SimpleSearchHdr" >

    < ui: happy >

    < oa:messageComponentLayout id = "CustomSimpleSearch" >

    < ui: happy >

    < oa:messageLovInput id = "SearchEmpName" prompt = "Employee" selectiveSearchCriteria = "false" externalListOfValues = "/ xxx/oracle/apps/ap/sign/webui/XXXSignLimitPersonRN ' not validated ="true">

    < lovMappings >

    < lovMap id = "lovMap1" lovItem = "Full name" resultTo = "SearchEmpName" criteriaFrom = "SearchEmpName" / >

    < lovMap id = "lovMap2" lovItem = "PersonId" resultTo = "PersonId" / >

    < / lovMappings >

    < / oa:messageLovInput >

    < oa:messageTextInput id = speedy "SearchAsOfDate" dataType = "DATE" = "In Date" / >

    < / ui: happy >

    < / oa:messageComponentLayout >

    < / ui: happy >

    Had, I had put the controller to the Tbl rather on application RN.

    Thank you

  • The script of the recordset does not define the function findServerBehaviors

    Errors frequent pop up. Firstly the premiera listed below. After I closed the alert, the second error appears.

    The script of the recordset does not set the findServerBehaviors function.

    The repeating region script does not set the findServerBehaviors function.

    Dreamweaver CS 6 Version 12.2 develop 6006

    Clear Cache corrupted in DW

    http://forums.Adobe.com/thread/494811

    Plan B, restore preferences

    http://helpx.Adobe.com/Dreamweaver/KB/restore-preferences-Dreamweaver-CS4-CS5.html

    Nancy O.

  • I get a JavaScript Application error: "setTimeout" called on an object that does not implement the interface Window for Firefox.

    I get a pop up box with the message: Application JavaScript error: "setTimeout" called on an object that does not implement the interface Window for Firefox.

    But it seems to appear when I go to Amazon.com. Then he opens with this message and the OK option? But as fast as I can click OK, another box appears. After all a half dozen, she disappears - until what I move to another part of Amazon! I uninstalled - reinstalled and then - Firefox and BA. I do not understand this!

    (And of course, there is always the possibility that it is not only attacking me on Amazon... There may be a lot of other sites that also trigger, and I just haven't been there yet.)

    Hello

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Why an amplification of the RAM does not change the index performnance of windows vista?

    Why an amplification of the RAM does not change the index performnance of windows Vista?

    Hello

    I m not very well, but maybe you have more than 3 GB of RAM and Vista 32 bit.
    Usually the 32 bit OS is capable to manage and send only 3.2 GB.
    The more than 3.2 GB RAM will not operating system used and therefore would not increase the index
    In addition the laptop will be not really faster after upgrading RAM. You will notice better performance using applications at the same time, but this does not affect the index of Vista.
    But this is only my personal hypothesis.

    Welcome them

  • Group video call does not

    Hello! I recently bought a laptop with Windows 8.1 with Skype application pre-installed. When when I video call to one person, everything works normally, and I am able to see the other person. However, when you make a group call, I'm the only one who cannot see any of the parties, even if I am able to hear. I have the latest Skype application. Also, I can't receive pictures. Where is the problem?

    The problem is that the 'modern' for Windows 8/8.1 native Skype application does not support the group video calls. If you want this feature to be available, then you can install the desktop version.

    The currently most recent Skype 6.14.0.104 desktop version can be installed using the msi installer:

    http://download.Skype.com/MSI/SkypeSetup_6.14.0.104.msi

  • With the help of 5s with ios 9.2.1. Call ringtone but screen does not show the answer since mode. Could not receive call and not able to see the contact call. This may be due to whatsapp.

    With the help of 5s with ios 9.2.1. Call ringtone but screen does not show the answer since mode. Could not receive call and not able to see the contact call. This may be due to whatsapp bug. Please specify.

    bjmrao wrote:

    With the help of 5s with ios 9.2.1. Call ringtone but screen does not show the answer since mode. Could not receive call and not able to see the contact call. This may be due to whatsapp bug. Please specify.

    Please ask Whatapps since you use their app.

  • Caller does not hear me on a voice chat with Skype.

    I have a problem wth Skype. Caller does not hear me. Microphone is activated.

    Hi Ahmed Dwidar.

    Try not related to the thread below, which refers to the same question.
    https://support.Skype.com/FAQ/FA348/with-Skype-to-Skype-calls-the-other-person-can-t-hear-me-what-s-wrong

    Bindu R - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • Z10 Z10 ILA BlackBerry does not display the name of the caller of the stored contacts.

    My Z10 does not display the names of the callers stored in contacts with a prefix or area code. For example, an incoming call on contact JOHN SMITH, whose number is stored as + 44 7976 667668 shows not her name but just 07976 667668, but if the number of JOHN SMITH has been stored as 07976 667668 (without + 44) then the incoming call appears her name. Does anyone know how to remedy this? or is it a design error / omission by RIM?

    This is a known issue with the software currently.  Please visit KB33685

  • BlackBerry Tour 9630 smartphones does not display the name of the caller

    Hello

    I have a Tour 9630, version sw 5.0.0.732.  When the phone rings, it does not display the name of the caller, their telephone number, although this number is in my address book.  Once I answer the call, the name will be displayed.

    Naturally, I would like to know who is the caller before I answer!  :-)

    I found a few messages, ask something similar, although for different model phones.  Some of them suggest that I have to disable protection for the content... but I can't find it in the options.  Even in the User Guide, it contains instructions (go to Options > Security Options > General settings... but there is no "General settings" on my phone.)

    If anyone knows how to solve this problem, I would be very grateful!

    Kind regards

    Options > Security > encryption > include contacts.

    There could be other solutions... Try these:

    1. make sure that you set your own country code to the Phone Dialer screen > Options > smart dialing.
    Set your country code in this format: "+ xx" where xx = country code. Some countries have two or three-digit country Codes. Do not place not the '+' in the entrance of your contact.
    * In the United States, the value of this country as '+ 1' Code and place your local area code in the appropriate box (this normally the default setting in a new BB).

    2. in the same place, change the length of National number for the number of digits corresponding to your country (since some countries have less than 10 as that set by default in the BB). Check out the total numbers, less country code. Do not place not the '+' in the entrance of your contact.
    * For example, some countries have a total number to 8 (more than 3 for the country code). You must enter '8 '.

  • Windows 7 Search index does not maintain the sites indexed

    My search indexer is not indexed parameters locations I do and after a day or two, he returns to the original setting whicgh was the Start Menu.  I changed the indexed locations to include most of my C drive, and it indexes all (the search function works well for awhile) but a day or two later, when I do a search, nothing comes.  I double-check the settings and find that it has been restored to the original indexed locations.

    My system is updated regularly and I'm using Avast antivirus.

    Thank you

    Hi TomHathcoat,

    Thanks for posting in the Microsoft Community.

    I understand that you are facing the question with an indexer search does not maintain the indexed locations.

    Method 1:

    I suggest you run the troubleshooter and check if this solves the problem. See the following article to do the same thing.

    Open the troubleshooter of search and indexing.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-search-and-indexing-Troubleshooter

    Method 2:

    Try to rebuild the search indexing. See the steps in the following article.

    http://Windows.Microsoft.com/en-us/Windows7/change-advanced-indexing-options

    See also:

    Improve Windows searches using the index: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/improve-Windows-searches-using-the-index-frequently-asked-questions

Maybe you are looking for

  • Why my Facebook page was scared without asking me it? Why don't my cursor "disappears" sometimes when I'm e-mailing or posting?

    I was on my Facebook page and the "rail" to shrink or expand the page appeared without any reason. All of a sudden then shrunken page if little, that I can't read it yet. Also, sometimes when I'm emailing or detachment, the cursor disappears. No matt

  • Satellite L850-161 - Tempro Blu - ray driver update notification

    I have just received an alert of tempro on a driver update that my L850-161 will play blu - ray discs. Now, I was quite surprised that I only have a dvd player of standard model provided with L850 when I bought it. I have downloaded the driver and tr

  • Installation without CD

    I have just updated the operating system to my computer for "MAC OS x 10.6.8" and it says I have to re - install my printer in order to print or scan and I can't find the CD that came with the printer.  How to re-install the printer without the CD. 

  • A6000n PC DVD drive replacement

    I have an old HP Pavilion a6000n desktop PC computer that I've updated Vista to Windows 7 I.  The DVD eject button is unresponsive and I am wanting to buy a replacement.  I looked at the specs for the DVD player and found that this is a 'drive 16 X D

  • How to close a song played in the music of xbox

    While I have a song to play if I can't listen to most how to stop more songs playing music and shut the application down I can't rewind before the break, but stop and close to finish listening