Why i can't get the List's Index

why I can't get the List's Index?Why I can't get the Command Action?
below is the code.many thanks!
import javax.microedition.lcdui.* ;
import java.util.*;
public class SelectCusScreen extends List implements CommandListener {
    public SelectCusScreen(Vector v) {
        super("people",Choice.EXCLUSIVE) ;
        Enumeration enumer = v.elements() ;
        while(enumer.hasMoreElements()) {
            //Adds an item consisting of one String to the Form
            append((String)enumer.nextElement(),null);
            //System.out.println(((String)enumer.nextElement()));
         addCommand(new Command("OK",Command.OK,1));
         setCommandListener(this);
    public void commandAction(Command c,Displayable s) {
        String cmd = getString(getSelectedIndex()) ;
        if(cmd.equals("OK")) {           
             List l = (List) s ;
            int i = l.getSelectedIndex() ;
            System.out.println("something");
            String con = l.getString(i) ;
            System.out.println("your choise"+con);
}[

Not sure about espn.go.com, but on espn.com, Adblock Plus may prevent videos from playing. If you have that or another extension which blocks ads, try making an exception for the site.

Similar Messages

  • In the topmost Firefox menu with File,Edit,View,History,Bookmarks, I can not get the list of bookmarks to display as they did before. The Bookmarks menu does not open up into the list of bookmarks.

    I am running Mac os 10.6.8 and Firefox 6.0.1 on a MacBook Pro and on a desktop Macintosh.
    The large computer displays a list of bookmarks when you click on the uppermost Bookmarks menu.
    The MacBook Pro displays the following when you click on the Bookmarks word in the top menu:
    "Show all Bookmarks, Bookmark this Page, Bookmark all Tabs and an icon with a blue dot next to Bookmarks Toolbar with an arrow to the right and below that it says Unsorted Bookmarks.
    There is no display of the list of bookmarks from which I can chose as I do on the larger desktop macintosh computer.
    How can I get the list of bookmarks to show as a list when I click the Bookmarks menu?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    You can also try to move (delete) the Firefox plist file.<br />
    See [http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results]
    Go to "Library > Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist).

  • How can i get the list of all users present in the LDAP

    Hi Experts,
    How can i get the list of all users present in the LDAP ?
    Is there any API or function Code to get all user list??
    Please help me out!!!
    Help will be rewarded

    Well it will depend on exactly where your UME configuration points to in the LDAP tree but yes, it is possible to get all users.  Something like the following should do it:
    import com.sap.security.api.*;
    import com.sapportals.portal.prt.component.*;
    IUserFactory iuf;
    ISearchResult isr;
    IUser user
    String userid;
    iuf = UMFactory.getUserFactory();
    isr = iuf.getUniqueIDs();
    you will need to iterate the ISearchResult object but you can get IUser objects by
    userid = (String)isr.next();
    user = iuf.getUser(userid);
    then you can imanipulate / identify / or whatever you need with the user object
    Haydn

  • How can i get the list of all users present in the UME ?

    Hi Experts,
    How can i get the list of all users present in the UME ?
    Is there any API or function Code to get all user list??
    Please help me out!!!
    Help will be rewarded
    -pankaj chouhan

    Hi Pankaj,
    find the official NetWeaver security javadocs (including access to UME) <a href="http://help.sap.com/javadocs/NW04S/current/se/index.html">here</a>. Look for classs UMFactory and proceed from there.
    Best regards,
    Martin

  • How can i get the list of DB02's Table spaces-overview?

    Dear Experts,
           Could you help me about how can i get the list of DB02's Table spaces-overview? which function module can do it?
    Thanks a lot

    Hi,
    Execute this FM DB02_ORA_FILL_TD110
    U will get all the details of table spaces in the importing parameter TD110 of that FM.
    Reward if helpful
    Regards
    Vodka.

  • How can i get the list of all tcode used by user of particular module

    Hi,
    How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
    Regards
    Vikram

    Login to your SAP System
    Run TCode SE16
    Type Table Name : TSTCT
    Press F7 Key (Table Contents )
    Go to Settings in menu bar
    Select User Parameters
    Under Keyword select Field Label and press green check mark
    Select your criteria in Data Browser and execute
    You will see all t codes in there
    Regards,
    Yogesh

  • By API action, how can I get the list of user IDs within a specific group  (which is created by API) ?

    By API action, how can I get the list of user IDs within a
    specific group (which is created by API) ?
    or How can I get the group (which is I create by API) ID to
    which a specific user belong by API action?
    Thanks
    Alex

    The poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.

  • How can I get the list of drivers without getting popup message?

    Every time the application gets to this line:
    File[] roots = File.listRoots();
    I get message box: "There is no disk in the drive.
    Please insert disk into drive A:"
    How can I get the list of drivers without getting
    this message popup?

    I don't have a solution to this problem. However, it does occur and it is annoying. I am testing our application on 4 client machines. On three of them, it NEVER asks for the floppy disk. On the remaining one, it ALWAYS asks. I have looked on the computers and cannot find any configuration differences (in fact, these machines are kept in a "closed environment", and therefore, they are configured, by default, exactly the same).
    Does anyone have any thoughts?

  • Can we get the list of all BO report scheduled to be sent(or have been sent) for a specified day?

    Hi all,
    For all BO reports scheduled to be sent out, can we get the list of all BO report to be sent(or have been sent) for a specified day?(For example, today or nex Monday).    Thank you.
    Regards,
    Eton.

    Hi Eton,
    To check the instances which have ran today, you can use the below query in query builder.
    SELECT SI_NAME,SI_ID FROM CI_INFOOBJECTS WHERE SI_INSTANCE=1 AND  SI_STARTTIME > '2014.08.20 00:00:00' Order by SI_STARTTIME DESC
    To check the instances which would be running in the future, that means you have recurring schedules. Check for the SI_NEXTRUNTIME to get the details of instances which will run in the future as per the recurrences.
    Thanks,
    Prithvi

  • I can not get my itunes to sort my library in alphabetical order by artist??  Nor can I get the listing to be numbered...ie...1...2...3...4...5 etc.....Can anyone help??  It used to alphabetize my list correctly before I downloaded the 11.0.1 or 11.0.5

    I can not get my itunes to sort my library in alphabetical order by artist??  Nor can I get the listing to be numbered...ie...1...2...3...4...5 etc.....Can anyone help??  It used to be able to alphabetize my list correctly before I downloaded the 11.0.1 or 11.0.5 version of itunes?????

    How are you viewing your library? In Song view or Album View?
    If in Album view pull down View > Show View Options and select Sort by: Artist, then: (whichever choice you want here).
    If in Song view I like to see the album artwork so pull down View > Show View Options and select "show album artwork" and close the small window. Then click on the column that contains the artwork and sort it by Artist.

  • Why is my iPhone getting the list of my e-mail address's from my computer?

    Why is my iPhone getting the list of e-mail address's from my computer?

    Oh! And 3 nights ago I ugraded my 3GS (this phone) to iOS 5.

  • Why i cann't get the executed step index of main segment of a sequence?

    Hi, Everyone!
    Could someone help me ,Pls?
    Query:
            How can i get the executed step index of main segment of a executed sequence?
    Aim:
           I want to let Teststand reveal the executed step index no matter when it running in main segment, setup segment or cleanup segment when i terminate executing sequence.
    My action:
          I add a Statement step in SequenceFilePostStep , the content is FileGlobals.GetArrayOffset1= RunState.Sequence.Main.GetArrayOffset("Pass/Fail Test1",0,"0").
          but it cann't work, and it is error.

    The backslashs are escape characters which tell the expression to interpret the " " as actual quotes. Since the expression Doug posted had other quote marks in it here: ("", 0, "[\"Pass/Fail Test1\"]")  we have to escape the inner quotation marks so that the expression will be interpreted correctly. The backslash does this.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Where can we get the list of predefined services for the notification of events/signals

    We have a sample plugin docwatch which uses the responder to notify in case a new doc is created/saved/doc closed etc.
    I want to know if I can get the similar set of services for the text frame
    eg: Typing a text should generate the notification
            Deleting a text shoud generate a notification( in the form of alert window or something)
    Also, for pages,frames etc.
    Where can we check the list of default services available for these or can we do it some how in code?

    Hi Eton,
    To check the instances which have ran today, you can use the below query in query builder.
    SELECT SI_NAME,SI_ID FROM CI_INFOOBJECTS WHERE SI_INSTANCE=1 AND  SI_STARTTIME > '2014.08.20 00:00:00' Order by SI_STARTTIME DESC
    To check the instances which would be running in the future, that means you have recurring schedules. Check for the SI_NEXTRUNTIME to get the details of instances which will run in the future as per the recurrences.
    Thanks,
    Prithvi

  • How can I get the list of columns (fieldcatalog) for particular variant

    Hello,
    i have option chose variant on selection screen (REUSE_ALV_VARIANT_F4) and i need to get which fields (columns) are included in this variant - i need to get this restricted fieldcatalog according variant using FM. I need to save file only with columns included in particular variant.
    Thx.

    Hi Zdenek,
    You can get the list of user variant by FM
      call function 'LVC_VARIANT_F4'
    You can get the details of the selected variant using FM
       call function 'LVC_VARIANT_SELECT'
    Please check the SAP example BCALV_GRID_11 program for the code.
    Hope this helps.
    Franc

  • How can I get the LIST in calendar like I used to?

    Before IOS7 I used to be able to view my appts. in list format to scroll through - this was so easy to look at mulitple ays events at one time. Now I can't.
    Can anyone ell me how to change the settings?

    Tap the search magnifying glass at the top to get the list view.

Maybe you are looking for

  • Error logs while creating New strucuture

    Hi, I'm creating new structure for example z_structure.I have 16 fields inculded in it which has some already existing data elements.And all my 16 fields tech specs are based on this data elements.Now my problem is in curreny/quantity fields i'm givi

  • Is it possible to recover organizers from PE3 or PE4 in PE10?

    Since my current version of Photoshop Elements is very old, I want to buy the last one PE10 but I need to be sure I won't lose the old organizers (my catalog .psa) under PE3 and PE4? If this is possible, how to recover these organizers in PE10? Many

  • Dunning for Public Insitutions

    Hi Experts! How are you? We are dealing here with a situation, and we really need your help and experience in SAP ISU. Regarding dunning, we have the following scenario with public institutions: 1 - We have one City Hall which have several water serv

  • Bulk in Bind exception

    Hello there, I wanted to ask is there a limitation for use of FORALL with PL SQL table.COUNT i'm getting error Bulk in Bind exception by the following codesnippet: FORALL i in 1 .. cst.COUNT INSERT ........ COMMIT; END LOOP; Database is 10g

  • Comment faire copier/coller en rapide

    comment faire copier coller avec le clavier en express?