Problem with populating list

Gurus,
This is the record group query "Select country_desc from country order by country_id" and I am using this record group with a populate built in .. But I amnt able to see the records in the list item .. I am using this code in when new form instance
POPULATE_LIST('B_AFE_CUSTOMER.CUST_NATIONALITY','REC_COUNTRY');
b_afe_customer (block name). cust_nationality (list item)
rec_country(record group)
Please help
Regards

before populating the list you have to populate group first
populate_group('REC_COUNTRY');

Similar Messages

  • Having problem with reading list in safari

    i am having problem with reading list in safari some time it work sometimes gets hang....

    Might be a cache issue ...
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Is there a way to fix ipod touch screen display problem with song list?

    I was wondering if anybody has had this problem? I have an ipod touch 64gig 5th gen for probably about 2 years. I hardly use it because I have it as a back up ipod until primary one dies. This is the first time I came across this problem. Upon turning on device, the first artist/song list I choose displays correctly. Once I start choosing any other artist/song list afterwards, the display for the 1st artist/song list re-appears. If the song list is only a single song to 3-4 songs it will display correctly. Any other song list I choose that consist more than 5 songs, the first artist/song list re-appears on screen like the display is messed up.
    For example: Upon turning on device, I choose Aaliyah with a list of 9 songs displaying.
    Upon trying to select a different artist and song, for example I choose Nachtmar with a  list of 20 songs.
    The Aaliyah with the list of 9 songs re appears in place of the song list I am attempting to choose. The songs play and it works, but the display is incorrect. Why is it doing this? Does anybody have this problem? I have tried resetting and it has currently been updated. I have came across this problem just very recently a couple of days ago. I have had a couple of hard resets requiring to erase all data in the past and I don't want to go that way again because I have about 3,500 songs. I have never experience this problem before in the past. I just want it to display the current list of songs. It's inconvenient having to type in every song while playing in the car instead of being able to easily pick an individual song.

    I have this problem too and it drives me crazy. When I view my ipod, I don't want to see a list of the first 8 songs in my ipod library. I just want to see the current song playing. It's like the ipod display goes into some type of "sleep" mode while your music plays,and the display defaults to show the first few songs in your ipod touch library, even though none of those songs are currently being played. I have to take the time to either flip the ipod over a couple of times in order for that list to disappear just to see the current song playing.
    This is an example of what I see on my display after the current song begins playing. These are the first songs in my ipod library. To get rid of this view, I have to either shake the ipod or flip it over a couple of times and the current song is now displayed, allowing you to see the current song, also allowing you access to the arrows to either fast forward or playback/reverse. On the display, the songs are in a grid or table format (unable to show that here).
    Acoustic Soul
    Aaliyah
    Adventers on the Wheels
    Adventures in Paradise
    After Tonight
    Will Downing

  • Simple problem with a list initialization.

    hello ! i have a class Contact and i would like to make a list of lists of Contact variables .. but when i try to run my code , it says "IndexOutOfBoundsException: Index: 0, Size: 0" . I know that every list of the list must be initialized .. but i don't know how .
    here is the declaration of the List
    static  List<List<Contact>> lolContact=new ArrayList<List<Contact>>();and i know that i should do something like :
    lolContact.get(0)=new ArrayList<Contact>();to initialize every list of the list but i don't know how . please help

    badescuga wrote:
    and i know that i should do something like :
    lolContact.get(0)=new ArrayList<Contact>();
    Couple of problems with that.
    1. You can never do methodCall() = something in Java. The result of a method call is not an L-value.
    2. You're trying to assign a ContactList to a Contact variable. Basically, you're trying to do
    Contact c = new ArrayList<Contact>();3. Even if you changed it to
    Contact c = lolContact.get(0);
    c = new Contact();it would not put anything into the list. That would just copy the first reference in the list and stick it into variable c, so that both c and the first list item point to the same object (remember, the list contains references, not objects--no object or data structure ever contains an object in Java), and then assigns a completely different reference to c, forgetting about the one to the object pointed to by the list. It would not affect the list in any way.
    4. You can't do get(0) until you've first put something into the list.

  • Problem with ALV list

    Hi friends,
                  I have created one program with alv list, but i am unable to add one header and footer, also i have to add one logo to the program. Plese some one tell me a easy procedure to add a header, footer and also a logo. If you can show me one with example that would be very helpful.
    This is my program, plz add the necessary parts.
    *& Report Y_BOM2_ALV
    REPORT y_bom2_alv LINE-SIZE 350 LINE-COUNT 350.
    *& Include YINCLUDE1
    TABLES : mast, stko, stpo.
    TYPE-POOLS : slis.
    DATA : BEGIN OF iall OCCURS 10,
    matnr LIKE mast-matnr,
    werks LIKE mast-werks,
    stlan LIKE mast-stlan,
    stlal LIKE mast-stlal,
    stlst LIKE stko-stlst,
    posnr LIKE stpo-posnr,
    idnrk LIKE stpo-idnrk,
    menge LIKE stpo-menge,
    meins LIKE stpo-meins,
    ausch LIKE stpo-ausch,
    lgort LIKE stpo-lgort,
    END OF iall.
    DATA : i_repid LIKE sy-repid,
    i_lines LIKE sy-tabix.
    DATA : int_fcat TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE title1.
    PARAMETER : p_werks LIKE mast-werks.
    SELECT-OPTIONS : s_matnr FOR mast-matnr.
    SELECTION-SCREEN END OF BLOCK a1.
    INITIALIZATION.
    title1(50) = ' Bill Of Material Input Screen '.
    *& Include YINCLUDE2
    START-OF-SELECTION.
    SELECT mastmatnr mastwerks maststlan maststlal stko~stlst
    stpoposnr stpoidnrk stpomenge stpomeins stpo~ausch
    stpo~lgort INTO TABLE iall FROM stpo INNER JOIN stko ON
    stpostlnr = stkostlnr INNER JOIN mast ON
    stpostlnr = maststlnr WHERE mast~werks EQ
    p_werks AND mast~matnr IN s_matnr.
    IF sy-subrc <> 0 OR p_werks EQ ' ' OR s_matnr EQ ' '.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
    EXPORTING
    titel = 'ERROR MESSAGE ( INPUT ERROR / WRONG INPUT ) '
    textline1 = ' PLANT / MATERIAL Invalid or Empty '
    textline2 = ' Plese enter plant no / material no again '
    start_column = 20
    start_row = 5.
    EXIT.
    ENDIF.
    CLEAR i_lines.
    DESCRIBE TABLE iall LINES i_lines.
    IF i_lines LT 1.
    WRITE: /
    'No materials found.'.
    EXIT.
    ENDIF.
    END-OF-SELECTION.
    i_repid = sy-repid.
    *& Include YINCLUDE3
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = i_repid
    i_internal_tabname = 'IALL'
    i_inclname = i_repid
    CHANGING
    ct_fieldcat = int_fcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    WRITE: /
    'Returncode',
    sy-subrc,
    'from FUNCTION REUSE_ALV_FIELDCATALOG_MERGE'.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = i_repid
    it_fieldcat = int_fcat
    i_save = 'A'
    TABLES
    t_outtab = iall
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    WRITE: /
    'Returncode',
    sy-subrc,
    'from FUNCTION REUSE_ALV_LIST_DISPLAY'.
    ENDIF.

    Hi Tapodipta,
    See below example and modify ur code according to ur requirement..
    REPORT  ZTEST_ALV_CHECK        .
    TYPE-POOLS: SLIS.
    DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
          IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          L_LAYOUT type slis_layout_alv,
          x_events type slis_alv_event,
          it_events type SLIS_T_EVENT.
    DATA: BEGIN OF ITAB OCCURS 0,
          VBELN LIKE VBAK-VBELN,
          POSNR LIKE VBAP-POSNR,
         END OF ITAB.
    SELECT VBELN
           POSNR
           FROM VBAP
           UP TO 20 ROWS
           INTO TABLE ITAB.
    X_FIELDCAT-FIELDNAME = 'VBELN'.
    X_FIELDCAT-SELTEXT_L = 'VBELN'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 1.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'POSNR'.
    X_FIELDCAT-SELTEXT_L = 'POSNR'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 2.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
      x_events-NAME = SLIS_EV_END_OF_PAGE.
      x_events-FORM = 'END_OF_PAGE'.
      APPEND x_events  TO iT_EVENTS.
      CLEAR x_events .
      x_events-NAME = SLIS_EV_TOP_OF_PAGE.
      x_events-FORM = 'TOP_OF_PAGE'.
      APPEND x_events  TO iT_EVENTS.
      CLEAR x_events .
      x_events-NAME = slis_ev_end_of_list.
      x_events-FORM = 'END_OF_LIST'.
      APPEND x_events  TO iT_EVENTS.
      CLEAR x_events .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM       = SY-REPID
        IS_LAYOUT                = L_LAYOUT
        IT_FIELDCAT              = IT_FIELDCAT
        it_events                = it_events
      TABLES
        T_OUTTAB                 = ITAB
      EXCEPTIONS
        PROGRAM_ERROR            = 1
        OTHERS                   = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM TOP_OF_PAGE.
    * BREAK-POINT.
      WRITE: / 'TOP_OF_PAGE'.
    ENDFORM.
    FORM END_OF_LIST.
    * BREAK-POINT.
    "here you can use this for footer
      WRITE: / 'FOR FOOTER'.
    ENDFORM.
    FORM END_OF_PAGE.
    * BREAK-POINT.
      WRITE: / 'END_OF_PAGE'.
    ENDFORM.
    Go through the link as well..
    Re: ALV  Footer
    Hope it will solve ur problem..
    <b>Reward points if useful..</b>
    Thanks & Regards
    ilesh 24x7

  • Problem with populating ROWSET

    Hi ,
    I have a problem with ROWSET.
    I have a table with 6 columns and approximately more than 200 records.
    I reterive them in a ResultSet and resultset gets populated.
    But I populate Rowset with that ResultSet then it hangs for atleast 1 minuate and then it comes back to its original state.
    Can anyone have thge idea why it happens....?
    Is therer any issue with the Rowset ?
    Why it takes too much time to populate the rowset..?
    Thanks
    Tariq

    Here it is....
    CachedRowSetImpl crs = new CachedRowSetImpl();
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet result = stmt.executeQuery(sql); // Here we have 250 records in ResultSet
    crs.populate(result); // This is the problem. This line takes atleast 1min to executeAny solution u gurus have ....

  • Problem with contact list in email w/ 3.0

    After upgrading to 3.0 I'm having a problem with the "To" in emails. I start typing in a name in the "To" field and it does not bring up matching entries in my contact list (it used to do so with the previous version SW).
    I have to try to send the email at which time an error message comes up. I have to cancel the send, delete the name in the "To" field and type the name in again. The second time it brings up the contact list and eveything works fine.
    Anyone else having this problem?

    Jackson_Bill wrote:
    What IDE are you using and what platform?Read first.
    Moh Bob wrote:
    I'm using J2ME platform SDK 3.0
    db

  • Problem with Linked List

    i have make a database with linked list for a School student counselor.
    The to be store is
    student name, ID, Counseling Date, Progress
    In there there will be record for a student and the Date and progress has to be stored for 4-weeks as the counseling is on weekly basis. These data items will be multivalued(what u say in Databases) how i can store this repetitive data in linked list for one student.

    By capsulating the data in objects and adding the objects to a linked list.

  • Problems with Smart List in Forms.

    Hi,
    I set Smart List in my Account Dimension.
    In HP Documentation (9.2 and 9.3.1) I read that is posible to allow or not allow a user using Smart List for a specific member of account through a form option.
    I already used this option in HP 9.2, but in 9.3.1 it do not exist this option in dataform, even so in 9.3.1 documentation says that it's posible.
    I wanna Know if someone have used this option in 9.3.1.
    I have been thinking in re install Planning or duplicate member that I need use sometimes with Smart List and sometimes writing a number.
    Any idea???
    Thanks

    tbian wrote:
    John,
    That is true, it states that there is an option to turn Smart List off and on for any data form. It does state within the admin guides but I don't see the option when I edit the data forms.
    Am I missing something?
    Best Regards,
    Tammy Bian CarlileI think the documentation is saying you can either have all the forms displaying smart lists or the other choice is not to have them, this is defined by using the evaluation order.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Problems with populating Drop Down List (WD ABAP)

    Hi,
    I am trying to populate two Drop Down fields CARRID and CONNID (Type Table SPFLI) on an Adobe Interactive Form in a Web Dynpro ABAP Application.
    In the WD Context I have a node "Flights" with those attributes.
    In the WDDOINIT I populate the Context elements (just for test purposes with all entries of SPFLI).
    [code]  
    DATA:
         node_flights                        TYPE REF TO if_wd_context_node,
         elem_flights                        TYPE REF TO if_wd_context_element,
         stru_flights                        TYPE wd_this->element_flights,
         it_flights TYPE TABLE OF spfli.
    SELECT carrid connid FROM spfli INTO TABLE it_flights.
    navigate from <CONTEXT> to <FLIGHTS> via lead selection
       node_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).
    node_flights->bind_table(
        new_items            = it_flights
        set_initial_elements = ABAP_FALSE
    [/code]
    According to this
    Re: adobe form/reader  error I bound the element values property of the Enumerated Drop Down List to [code]$record.sap-vhlist.CARRID.item[*][/code], whereas <i>Object Text</i> is "Text" and <i>Object Value</i> is "Key".
    Unfortunately the DDLs on the Adobe Form are not populated with the values read from the table. I debugged the application and the values are written to the Context node.
    Do you have any further hints?
    Best regards,
    Robin
    Message was edited by:
            Robin Wennemuth

    Robin:
    Did you get this resolved? Would you please tell me how you got it done?
    Thank you,
    Fred.

  • Problem with External List Management; Business Partner Type

    Hello experts;
    I created a mapping format for importing a simple notepad file. In the ELM i see all my fields populated correctly. Once i start the importing process it goes smoothly with no mistakes at all (green lights). The bp is actually imported and i can see it in the BP transaction with most of the fields correctly imported BUT the business partner type (PERS_PERS_BPKIND in ELM). For this field i have a Constant Assignment which is always HH and because of that i don't have it in my notepad file but i pass the value directly from ELM constant assignement=HH. Unfortunately this value is not copied. Any idea? Am i doing something wrong or i'm loosing some steps in between?
    Thank you very much

    Hello,
    the issue is most probably related to missing authorizations. As you know the processing in external list management happens in the background using WF-BATCH user.
    Please check the following notes:
    708557 - 'ELM: Troubleshooting' point 1.
    https://service.sap.com/sap/support/notes/708557
    1912414 - ELM upload: Error in the map data-step
    https://service.sap.com/sap/support/notes/1912414
    1664498 - External List will not execute
    https://service.sap.com/sap/support/notes/1664498
    The information provided in the notes should help to solve the issue.
    best regards,
    Johannes

  • Problem with the List/Album List/Cover Flow/Grid view buttons

    Is anyone else having this problem?
    I have each playlist/media in different views. I have my music in List view, my podcasts, TV shows, and certain playlists in Album List view, and my movies and music videos in grid view. But now, any view that I select makes it the same for each playlist/media and I have to manually change it everytime I go to one of those lists. I figure this is a glitch with 10.5.3. Anyone else experiencing this?

    I'm also having that problem.
    It seemed to happen after iTunes 10.5 updates.
    I like my music in album list view and my apps in grid form.  However, now it's just one view for all lists.  Any fixes for this or is this a bug that needs to be ironed out by Apple?

  • RH8 for HTML: Problem with Multilevel List in published topic(s)

    I have discovered that working with the multilevel list and reapplying it (changing a level 2 to a level 1, for example) inserts numerous <span style margin> tags that don't show up in RH design view nor in an IE view of the published content, but the published help renders badly in Firefox (like a "justified" paragraph style that inserts broad spacing between words).
    The bad thing is that broad spacing is added to a command where no spaces should be, which looks fine in IE, but renders like this in Firefox:
    sqlplus XBRLDB/[email protected]:1521/ubmatrix
    @C:\xbrl_database\database\Oracle\       verify_registration        _v1_0        _1        .sql
    The "source" for published content looks like this:
    <p class="CodeSample" style="margin-left: 24px;">sqlplus XBRLDB/[email protected]:1521/ubmatrix
    @C:\xbrl_database\database\Oracle\<span style="margin-left: 40px;">verify_registration</span>
    <span style="margin-left: 40px;">_v1_0</span><span style="margin-left: 40px;">_1</span>
    <span style="margin-left: 40px;">.sql</span></p>
    How do I prevent the <span> tags from getting added to the RH project files? How do I remove them using the RH interface?
    Why are they getting added in such wierd places?
    PS: I have kept the paragraph style Numlist (which is how I define numbered procedures). I just apply the multilevel list to paragraphs tagged with this style. It's been working OK, except for the newly discovered problem above.
    I'm using Verdana family and the numbers look good. I've only looked at the published HTML which looks like this: I
    <p class="Numlist">1<span style='font:6.0pt "Times New Roman"'><font size="1" style="font-size:6pt;">        </font></span>Do this</p>
    looks like this in a broser view:
    1 Do this
    Is this the 'expected' HTML code for numbered procedures (all this to precede a paragraph with a number), or is there a more efficient way to render numbered/mutilevel lists?

    Hi there
    I just created a small video that may be helpful for this.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Problem with populating E1EDP02

    Hi!
    I try to populate E1EDP02 this way:
    E1EDP02-BELNR = I_VBDKR-BELNR.
    E1EDP02-DATUM = I_VBDKR-LFDAT.
    but these 2 fields of I_VBDKR are empty while debugging, what are the possible reasons?
    My case is like this: functional guy has manually added a few additional lines to segments of the invoice list Idoc and it is a sample for me how invoice list Idoc should look like when creating it with running program RSNAST00.
    I try to test it with debuging program RSNAST00 and using a sample Idoc. If to be more precise, I try to debug only user exit ZXEDFU02. All the segments are populated ok, but not E1EDP02, because two main fields of I_VBDKR are empty ...
    Any ideas?
    Will reward,
    Mindaugas.

    Hi,
    Sorry ... I gave wrong FM.
    Try this FM RV_BILLING_PRINT_VIEW instead of RV_BILLING_REFERENCES.
      IF NAST-OBJKY+10(6) NE SPACE.
        VBCO3-VBELN = NAST-OBJKY+16(10).
      ELSE.
        VBCO3-VBELN = NAST-OBJKY.
      ENDIF.
                                                                                    VBCO3-MANDT = SY-MANDT.
      VBCO3-SPRAS = NAST-SPRAS.
      VBCO3-KUNDE = NAST-PARNR.
      VBCO3-PARVW = NAST-PARVW.
      CALL FUNCTION 'RV_BILLING_PRINT_VIEW'
           EXPORTING
                COMWA = VBCO3
           IMPORTING
                KOPF  = VBDKR
           TABLES
                POS   = TVBDPR.
    Regards,
    Ferry Lianto

  • Problems with Student List Part 1

    i have tried a lot of things to make this program run, but it doesn't.. so guys, i really need your help.. the following codes are to be saved as: StudentList.java, Student.java, Person.java, MyListArray.java and MyList.java.. the program will run through compiling and running StudentList.java.. this program adds Student Lists.. the problem is that it does not delete and insert item lists after is has been displayed.. so guys, i hope you can help me with this one..thanks in advance
    * @(#)StudentList.java
    * @author
    * @version 1.00 2009/1/13
    import java.util.*;
    public class StudentList extends MyListArray
         public static void menu()
              String [] menu = {"...Student List...",
                                    "1. Create List",
                                    "2. Add Student",
                                    "3. Delete Student",
                                    "4. Insert Student",
                                    "5. Display Student",
                                    "6. Quit"};
              for(int i = 0; i < menu.length; i++)
                   System.out.println(menu);
         public static void main(String[] args)
              MyListArray list = null;
              Scanner con = new Scanner(System.in);
              String idno = null;
              String familyName = null;
              String givenName = null;
              String mi = null;
              String course = null;
              int option = 0;
              Student t = null;
              Student s = null;
              while(option != 6)
                   menu();
                   System.out.print("Select item from above: ");
                   option = con.nextInt();
                   switch(option)
                        case 1: System.out.println("Create List");
                                  System.out.print("Enter size: ");
                                       int size = con.nextInt();
                                       list = new MyListArray(size);
                                       break;
                        case 2: System.out.println("Add Student");
                                  System.out.print("ID Number: ");
                                       idno = con.next();
                                  System.out.print("Family Name: ");
                                       familyName = con.next();
                                  System.out.print("Given Name: ");
                                       givenName = con.next();
                                  System.out.print("Middle Intitial: ");
                                       mi = con.next();
                                  System.out.print("Course: ");
                                       course = con.next();
                                  list.addItem(new Student(idno,familyName, givenName, mi, course));
                                  break;
                        case 3: System.out.println("Delete Student");
                                  System.out.print("Enter ID Number: ");
                                       idno = con.next();
                                       s = new Student();
                                       s.setIdNo(idno);
                                       list.deleteItem(s);
                                       break;
                        case 4: System.out.println("Insert Student");
                                  System.out.print("ID Number: ");
                                       idno = con.next();
                                  System.out.print("Family Name: ");
                                       familyName = con.next();
                                  System.out.print("Given Name: ");
                                       givenName = con.next();
                                  System.out.print("Middle Intitial: ");
                                       mi = con.next();
                                  System.out.print("Course: ");
                                       course = con.next();
                                  s = new Student(idno, familyName, givenName, mi, course);
                                  System.out.print("Insert at ID Number: ");
                                       idno = con.next();
                                       t = new Student();
                                       t.setIdNo(idno);
                                       list.insertItem(t,s);
                                       break;
                        case 5: System.out.println("Student List");
                                  System.out.println("" + list);
    * @(#)Student.java
    * @author
    * @version 1.00 2009/1/13
    public class Student extends Person
              private String idno;
              private String course;
         public Student(String idno, String familyName, String givenName, String mi, String course)
              super(familyName, givenName, mi);
              this.idno = idno;
              this.course = course;
         public Student()
              super();
              this.idno = "___";
              this.course = "___";           
         public String toString()
              return idno + " " + getFamilyName() + " " + getGivenName() + " " + getMi() + " " + course;
    Edited by: jen_nard on Jan 23, 2009 4:33 AM
    Edited by: jen_nard on Jan 23, 2009 4:36 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hi, i have added some methods in my program..but still, it does not work correctly..
    * @(#)StudentList.java
    * @author
    * @version 1.00 2009/1/13
    import java.util.*;
    public class StudentList extends MyListArray
         public static void menu()
              String [] menu = {"...Student List...",
                                    "1. Create List",
                                    "2. Add Student",
                                    "3. Delete Student",
                                    "4. Insert Student",
                                    "5. Display Student",
                                    "6. Quit"};
              for(int i = 0; i < menu.length; i++)
                   System.out.println(menu);
         public static void main(String[] args)
              MyListArray list = null;
              Scanner con = new Scanner(System.in);
              String idno = null;
              String familyName = null;
              String givenName = null;
              String mi = null;
              String course = null;
              int option = 0;
              Student t = null;
              Student s = null;
              while(option != 6)
                   menu();
                   System.out.print("Select item from above: ");
                   option = con.nextInt();
                   switch(option)
                        case 1: System.out.println("Create List");
                                  System.out.print("Enter size: ");
                                       int size = con.nextInt();
                                       list = new MyListArray(size);
                                       break;
                        case 2: System.out.println("Add Student");
                                  System.out.print("ID Number: ");
                                       idno = con.next();
                                  System.out.print("Family Name: ");
                                       familyName = con.next();
                                  System.out.print("Given Name: ");
                                       givenName = con.next();
                                  System.out.print("Middle Intitial: ");
                                       mi = con.next();
                                  System.out.print("Course: ");
                                       course = con.next();
                                  list.addItem(new Student(idno,familyName, givenName, mi, course));
                                  break;
                        case 3: System.out.println("Delete Student");
                                  System.out.print("Enter ID Number: ");
                                       idno = con.next();
                                       s = new Student();
                                       s.setIdNo(idno);
                                       list.deleteItem(s);
                                       break;
                        case 4: System.out.println("Insert Student");
                                  System.out.print("ID Number: ");
                                       idno = con.next();
                                  System.out.print("Family Name: ");
                                       familyName = con.next();
                                  System.out.print("Given Name: ");
                                       givenName = con.next();
                                  System.out.print("Middle Intitial: ");
                                       mi = con.next();
                                  System.out.print("Course: ");
                                       course = con.next();
                                  s = new Student(idno, familyName, givenName, mi, course);
                                  System.out.print("Insert at ID Number: ");
                                       idno = con.next();
                                       t = new Student();
                                       t.setIdNo(idno);
                                       list.insertItem(t,s);
                                       break;
                        case 5: System.out.println("Student List");
                                  System.out.println(" " + list);
    * @(#)Student.java
    * @author
    * @version 1.00 2009/1/13
    public class Student extends Person
              private String idno;
              private String course;
         public Student(String idno, String familyName, String givenName, String mi, String course)
              super(familyName, givenName, mi);
              this.idno = idno;
              this.course = course;
         public Student()
              super();
              this.idno = "___";
              this.course = "___";           
         //setters
         public void setIdNo(String idno)
                   this.idno = idno;
         public void setCourse(String course)
              this.course = course;
         //getters
         public String getIdNo()
              return idno;
         public String getCourse()
              return course;
         public boolean equals(Object obj)
              boolean okey = false;
              if(obj instanceof StudentList)
                   Student s = (Student)obj;
                   if(s.getIdNo().equals(idno))
                        okey = true;
              return okey;
         public String toString()
              return idno + " " + super.toString() + " " + course;

Maybe you are looking for

  • Validity option not getting displayed in Bank Information ESS

    Hi Experts, Can you please advise how to enable the validity option in the screen for bank bank information. Currently ESS->Personal Profile->Bank Information->Add other bank there is no option to specify the date range eg : create a bank record for

  • IPOD sync causes Blue Screen of Death

    Every time I plug in my IPOD to sync I get a message about Drive x not being present. options are cancel, retry or continue. Any option just produces the message again for approx. 3 tries then my entire system goes to Blue Screen of Death and starts

  • Emails not going out

    I know Verizon is not too Mac friendly, but I'm hoping someone can help me with the problem I'm having. I'm traveling within the US and using an iBook G4 with Mac OS X 10.3.9 software. I am using the Mail software that came with the computer. I can g

  • E-text File generation

    Team, We are generating E-text report based on 1.3 millons records and this file is ftped to another unix box via BIP schedular . We know that the DataXML for this E-text report is generated in the memory. What we want to know is about the final E-te

  • RFC_ERROR_SYSTEM_FAILURE: Syntax error in program SAPLRSBOLAP_BICS_PROVIDER

    Hi Gurus, We are getting an error below on our Production Portal when the users try to pull any report from the BI Portal. The initial exception that caused the request to fail was: Syntax error in program SAPLRSBOLAP_BICS_PROVIDER . com.sap.mw.jco.J