Confused about objects in ArrayLists

Alright, this is what I am trying to do:
1.I collect the first name, last name, number, points, rebounds, assists, and fouls all in the stats object.
Here is my main code:
    public static void main(String[] args) {
        String input;
        String input1;
        String firstName;
        String lastName;
        int gameNumber = 0;
        int points = 0;
        int rebounds = 0;
        int fouls = 0;
        int assists = 0;
        int i = 0;
        ArrayList<Stats> player = new ArrayList<Stats>();
        do{
            Stats stats = new Stats();
            Scanner keyboard = new Scanner(System.in);
            System.out.println("Do you want to enter data or quit(E-enter, Q-quit)?");
            input1 = keyboard.nextLine();
            if (input1.equalsIgnoreCase("E")){
                System.out.println("What is player's first name? ");
                firstName = keyboard.nextLine();
                stats.setFirstName(firstName);
                System.out.println("What is player's last name? ");
                lastName = keyboard.nextLine();
                stats.setLastName(lastName);
                System.out.println("What is player's game number? ");
                gameNumber = keyboard.nextInt();
                stats.setGameNumber(gameNumber);
                System.out.println("How many points were scored? ");
                points = keyboard.nextInt();
                stats.setPoints(points);
                System.out.println("How many rebounds? ");
                rebounds = keyboard.nextInt();
                stats.setRebounds(rebounds);
                System.out.println("How many fouls? ");
                fouls = keyboard.nextInt();
                stats.setFouls(fouls);
                System.out.println("How many assists? ");
                assists = keyboard.nextInt();
                stats.setAssists(assists);
                player.add(stats);
            System.out.println(stats);
            System.out.println("Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?");
            input = keyboard.nextLine();
            System.out.println(input);
        } while (!input.equalsIgnoreCase("Q"));
}I also have a Stats.java code that gets/sets each points rebounds...etc.
And thats all fine.... but now I want to put stats in an ArrayList, and be able to access each added stats by the user typing a last name.
AKA:
Input: Thompson
Output: points, rebounds, assists, fouls
So am I on the right road by just adding stats into player every loop, and how do I access it with just a last name?
If u do not understand just ask and Ill explain better.
Thanks guys

Ight thanks, I got that to work but now I have another question....
Here is my code:
  public static void main(String[] args) {
        String input;
        String input1;
        String firstName;
        String lastName;
        int gameNumber = 0;
        int points = 0;
        int rebounds = 0;
        int fouls = 0;
        int assists = 0;
        ArrayList s1 = new ArrayList<Stats>();
        do{
            Stats stats = new Stats();
            Scanner keyboard = new Scanner(System.in);
            System.out.println("Do you want to enter data or quit(E-enter, Q-quit)?");
            input1 = keyboard.nextLine();
            if (input1.equalsIgnoreCase("E")){
            System.out.println("What is player's first name? ");
            firstName = keyboard.nextLine();
            stats.setFirstName(firstName);
            s1.add(firstName);
            System.out.println("What is player's last name? ");
            lastName = keyboard.nextLine();
            stats.setLastName(lastName);
            s1.add(lastName);
            System.out.println("What is player's game number? ");
            gameNumber = keyboard.nextInt();
            stats.setGameNumber(gameNumber);
            s1.add(gameNumber);
            System.out.println("How many points were scored? ");
            points = keyboard.nextInt();
            stats.setPoints(points);
            s1.add(points);
            System.out.println("How many rebounds? ");
            rebounds = keyboard.nextInt();
            stats.setRebounds(rebounds);
            s1.add(rebounds);
            System.out.println("How many fouls? ");
            fouls = keyboard.nextInt();
            stats.setFouls(fouls);
            s1.add(fouls);
            System.out.println("How many assists? ");
            assists = keyboard.nextInt();
            stats.setAssists(assists);
            s1.add(assists);
            System.out.println("Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?");
            input = keyboard.nextLine();
            System.out.println(input);
            /*if (input.equalsIgnoreCase("I")){
                System.out.println("Enter player's last name: ");
                String lastNameInfo = keyboard.nextLine();
                for (int i=1; i<s1.size(); i=i+7){
                    if (lastNameInfo.equalsIgnoreCase((String)s1.get(i))) {
                        System.out.println((String)s1.get(i-1) + (String)s1.get(i) + " had " +
                                (String)s1.get(i+2) + " points, " + (String)s1.get(i+3) +
                                " rebound, " + (String)s1.get(i+4) + "fouls, and " +
                                (String)s1.get(i+5) + "assists.");
                    } else;
                    System.out.println("That player is not on the roster.");
        } while (input.equalsIgnoreCase("E"));
}And here is my output:
init:
deps-jar:
compile:
run:
Do you want to enter data or quit(E-enter, Q-quit)?
e
What is player's first name?
Jon
What is player's last name?
Doe
What is player's game number?
1
How many points were scored?
1
How many rebounds?
1
How many fouls?
1
How many assists?
1
Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?
BUILD SUCCESSFUL (total time: 13 seconds)Why does it not let the user put an answer in for the last question ("Do you want to get a players info or average, enter or quit (I-Info, A-average,E-entry,Q-quit)?")
Thanks

Similar Messages

  • Confusion about object naming

    i have 3 jsp files, b1.jsp, b2.jsp, b3.jsp which are similar files (all with similar contents, except that b1.jsp has a form while the other 2 don't), all using the same class (Bean2.java), with id="bea". when b1.jsp is run and i refresh the page, a certain attribute of the bea object is changed (i think due to the form) such that the result displayed is different.
    i believe it has to do with my form. but why is it that when i run b2.jsp and b3.jsp, that same attribute is also changed? is it cos i give the same name to the object of Bean2 class?
    hope u all know what i sam saying.

    hope to make myself clearer. b1.jsp is changed cos it has the form. but i din't know y b2.jsp n b3.jsp also has that particular attr changed

  • Confused about extending the Sprite class

    Howdy --
    I'm learning object oriented programming with ActionScript and am confused about the Sprite class and OO in general.
    My understanding is that the Sprite class allows you to group a set of objects together so that you can manipulate all of the objects simultaneously.
    I've been exploring the Open Flash Chart code and notice that the main class extends the Sprite class:
    public class Base extends Sprite {
    What does this enable you to do?
    Also, on a related note, how do I draw, say, a line once I've extended it?
    Without extending Sprite I could write:
    var graphContainer:Sprite = new Sprite();
    var newLine:Graphics = graphContainer.graphics;
    And it would work fine. Once I extend the Sprite class, I'm lost. How do I modify that code so that it still draws a line? I tried:
    var newLine:Graphics = this.graphics;
    My understanding is that since I'm extending the Sprite class, I should still be able to call its graphics method (or property? I have no idea). But, it yells at me, saying "1046: Type was not found or was not a compile-time constant: Graphics.

    Thanks -- that helped get rid of the error, I really appreciate it.
    Alas, I am still confused about the extended Sprite class.
    Here's my code so far. I want to draw an x-axis:
    package charts {
        import flash.display.Sprite;
        import flash.display.Graphics;
        public class Chart extends Sprite {
            // Attributes
            public var chartName:String;
            // Constructor
            public function Chart(width:Number, height:Number) {
                this.width = width;
                this.height = height;
            // Methods
            public function render() {
                drawAxis();
            public function drawAxis() {
                var newLine:Graphics = this.graphics;
                newLine.lineStyle(1, 0x000000);
                newLine.moveTo(0, 100);
                newLine.lineTo(100, 100);
    I instantiate Chart by saying var myChart:Chart = new Chart(); then I say myChart.render(); hoping that it will draw the axis, but nothing happens.
    I know I need the addChild method somewhere in here but I can't figure out where or what the parameter is, which goes back to my confusion regarding the extended Sprite class.
    I'll get this eventually =)

  • Confused about passing by reference and passing by valule

    Hi,
    I am confuse about passing by reference and passing by value. I though objects are always passed by reference. But I find out that its true for java.sql.PreparedStatement but not for java.lang.String. How come when both are objects?
    Thanks

    Hi,
    I am confuse about passing by reference and passing
    by value. I though objects are always passed by
    reference. But I find out that its true for
    java.sql.PreparedStatement but not for
    java.lang.String. How come when both are objects?
    ThanksPass by value implies that the actual parameter is copied and that copy is used as the formal parameter (that is, the method is operating on a copy of what was passed in)
    Pass by reference means that the actual parameter is the formal parameter (that is, the method is operating on the thing which is passed in).
    In Java, you never, ever deal with objects - only references to objects. And Java always, always makes a copy of the actual parameter and uses that as the formal parameter, so Java is always, always pass by value using the standard definition of the term. However, since manipulating an object's state via any reference that refers to that object produces the same effect, changes to the object's state via the copied reference are visible to the calling code, which is what leads some folk to think of java as passing objects by reference, even though a) java doesn't pass objects at all and b) java doesn't do pass by reference. It passes object references by value.
    I've no idea what you're talking about wrt PreparedStatement, but String is immutable, so you can't change its state at all, so maybe that's what's tripping you up?
    Good Luck
    Lee
    PS: I will venture a guess that this is the 3rd reply. Let's see...
    Ok, second. Close enough.
    Yeah, good on yer mlk, At least I beat Jos.
    Message was edited by:
    tsith

  • Confuse about Configuring Oracle Warehouse Builder

    newbie here... i am abit confuse on how to configure the Oracle Warehouse builder...
    I have 2 database... 1 source and 1 new one...
    I understand that i have to install the Runtime Repository in the database computer and the Target Schema through the client's computer...
    so all this while... i am just confuse about what to install into the source database and what to install into the new database...
    Please help...

    Location is a logical entity in your OWB design that can be either a database schema, a flat file location, an SAP application location etc. Once you complete your design and are ready to deploy the design into the runtime environment, you will have to 'register' the locations by providing the physical details of your location to OWB (user name/password, database, hostname etc.).
    I am a bit confused by your configuration - are the source and the target in two separate schemas or in the same schema? Your posts are somewhat contradictory.
    If they are in two different schemas, you should:
    1. Create a source module pointing to a source schema (you can then import data object structures from the source schema - i.e. you don't have to create source tables manually in OWB, but you can import them into the module automatically). This module will have a source location (for example SRC_LOC).
    2. Create a target module where all your target objects will be (i.e. where the data will be loaded). This module will have a different location (TGT_LOC). In your target module you will also create the mappings.
    3. When deploying, you will register SRC_LOC with the physical details of your source schema, while the target location will be registered with the physical details of the target schema. The code generated by OWB during deployment will make sure that the data is extracted from the source schema and inserted into the target schema (either by generating and using DB links or by qualifying the schemas in the extraction queries if source and target are in the same database instance).
    On the other hand, if both source and target objects are in the same db schema, you can have all your objects in the same target module and you will only have to register the location of this target module when deploying (LOC_TGT).
    That said, there can be a variety of reasons why there is no data in the target after you run the extract mapping that have nothing to do with locations, such as logical errors in the mapping (an inappropriate filter or a wrong join), insufficient privileges etc. I suggest you take a look in the runtime audit browser that should contain the error messages relative to your mapping.
    Regards:
    Igor

  • Confusion about Kodo and JCA

    Hi,
    I'm a bit confused about Kodo's Connection Architecture strategy. It is my understanding that
    PMF's can be built to use the connection architecture. Along this line, one would configure the
    ConnectionFactory or ConnectionFactoryName, and possibly the ConnectionFactory2 and
    ConnectionFactory2Name properties in a PMF. The result of the PMF implementation supporting the
    connection architecture is nice integration with the application servers in terms of security,
    transaction, and connection management. One can lookup in JNDI a reference to a Kodo PMF that
    supports datastore transactions or to another one that supports optimistic transactions or to
    another one that supports NTR, and with proper settings of the transactional properties and suitable
    application code, one's sesson bean will work.
    But from what I can see of Kodo's JDOPersistenceManagerFactory class, it, itself, implements the
    ManagedConnectionFactory interface, meaning, I think, that this class is resource adaptor. And that
    the part that confuses me. Why would Kodo be a resource adaptor? I thought it used a resource
    adaptor, which I think is the same thing as a connection factory.
    Anyway, I'm puzzled, and I'm hoping that someone could straighten me out.
    David Ezzio

    David-
    The fact that Kodo can integrate into an application server as a
    Resource Adaptor, and section 3.2.2 of the specification that says that
    the PersistentManagerFactory should be able to utilize a Resource
    Adaptor to obtain connections to the data store are two separate issues.
    We implement Kodo itself as a Resource Adaptor in order to provide ease
    of integration into recent application servers. Your confusion is
    understandable, since we do not actually yet support the use of Resource
    Adaptors as the Connection Factories as per section 3.2.2.
    Does that make sense?
    David Ezzio <[email protected]> wrote:
    Hi,
    I'm a bit confused about Kodo's Connection Architecture strategy. It is my understanding that
    PMF's can be built to use the connection architecture. Along this line, one would configure the
    ConnectionFactory or ConnectionFactoryName, and possibly the ConnectionFactory2 and
    ConnectionFactory2Name properties in a PMF. The result of the PMF implementation supporting the
    connection architecture is nice integration with the application servers in terms of security,
    transaction, and connection management. One can lookup in JNDI a reference to a Kodo PMF that
    supports datastore transactions or to another one that supports optimistic transactions or to
    another one that supports NTR, and with proper settings of the transactional properties and suitable
    application code, one's sesson bean will work.
    But from what I can see of Kodo's JDOPersistenceManagerFactory class, it, itself, implements the
    ManagedConnectionFactory interface, meaning, I think, that this class is resource adaptor. And that
    the part that confuses me. Why would Kodo be a resource adaptor? I thought it used a resource
    adaptor, which I think is the same thing as a connection factory.
    Anyway, I'm puzzled, and I'm hoping that someone could straighten me out.
    David Ezzio--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Kodo Java Data Objects Full featured JDO: eliminate the SQL from your code

  • Confusion about TreeMap

    Hi,
    I'm currently studying for SCJP exam and am confused about the following code.
         public static void main(String[] args) {
         TreeMap myMap = new TreeMap();
         myMap.put("ab", 10);
         myMap.put("cd", 5);
         myMap.put("ca", 30);
         myMap.put("az",20);
         NavigableMap myMap2 = myMap.headMap("cd", true);
         myMap.put("bl",100);
         myMap.put("hi",100);
         myMap2.put("bi", 100);
         System.out.println(myMap.size() + " " + myMap2.size());
         }When I run it, it outputs 7 6.
    What I'm confused about is how when after the line NavigableMap myMap2 = myMap.headMap("cd", true);and values are being entered into the myMap object, that it is still possible for them to be entered in the NavigableMap object? Are the 2 entities not seen seperately? Is it to do with the "inclusive" field of the headMap method.
    The solution states that the myMap contains the objects "ab","cd","ca","az","b1","h1","bi"
    and myMap2 "ab","cd","ca","az","b1","bi".
    But how when adding key-value pairs do both objects (myMap,myMap2) get considered for putting into?
    Thanks.

    From the API:
    headMap
    public NavigableMap<K,V> headMap(K toKey,
    boolean inclusive)
    Description copied from interface: NavigableMap
    Returns a view of the portion of this map whose keys are less than (or equal to, if inclusive is true) toKey. The returned map is backed by this map, so changes in the returned map are reflected in this map, and vice-versa. The returned map >supports all optional map operations that this map supports. So myMap2 contains all the elements from myMap that are <= "cd" (which are all except "hi"), and changes in either map are reflected on both, as stated.

  • Confused about JTable::setCellEditor

    Hi
    I'm a bit confused about what JTable::setCellEditor does.
    I wrote my own TableCellEditor implementation which can handle dates and other additional stuff and which can decide for itself what type of editing control to display.
    Now I want my table to use only this editor.
    However using
    tblTest.setCellEditor( MyEditorInstance );didn't work. But when I used
    tblTest.getColumnModel().getColumn(0).setCellEditor( MyEditorInstance );
    tblTest.getColumnModel().getColumn(1).setCellEditor( MyEditorInstance );
    tblTest.getColumnModel().getColumn(2).setCellEditor( MyEditorInstance );for every column it worked fine.
    How can I avoid setting the default editor manually and set it for all columns?
    As always, any help is greatly appreciated
    Marcus

    I agree with you, its not clear what that method does.
    If you don't set a cell editor to a column then JTable determines which of its default editors to use based on the Class returned from the getColumnClass() method, which is defined by the JTable and the TableModel. If you are using the default implementation of this method then it will always return Object as the class type. You can use your editor as the default by doing:
    table.setDefaultEditor(Object.class, MyEditorInstance);

  • Confused about Bandwidth Profiler - what's it telling me?

    Hi All,
    I'm confused about the bandwidth profiler. I have two
    different SWF
    files, both are profiled for 56K modem. One file is 253K, 150
    x 260 px,
    599 frames @ 10fr/sec showing a preload of 96 frames (9.6 s),
    frame 1 is
    45K. The other is 197K, 800 x 150 px, 1009 frames @ 12fr/sec
    showing a
    preload of 484 frames (40.3 s), frame 1 is 189K. Why does the
    preload
    for the smaller file take 40.3 sec. while the larger file is
    only 9.6
    sec.? And what does preload mean? It appears to indicate how
    long it
    will take to download frame 1, is that correct? Why is the
    Frame 1 size
    so different between the two? And why does the smaller file
    size have a
    much larger frame 1 size. I just don't see why a smaller file
    should
    take longer to load than a larger file.
    Any help would be appreciated.

    preloaders preload all frames - usually a percentage -
    unfortunately most developers make you wait
    until 100% of the movie (all frames/content) is loaded when,
    if built correctly, only a much smaller
    percentage needs to be loaded before playing. Sounds like one
    of your movies has embedded fonts or
    objects set for export on frame 1 (like components) and they
    all have to loaded first (before frame
    1 actually) because flash doesn't know where in your movie
    they are located.
    Chris Georgenes / mudbubble.com / keyframer.com / Adobe
    Community Expert
    Brett wrote:
    > Hi All,
    >
    > I'm confused about the bandwidth profiler. I have two
    different SWF
    > files, both are profiled for 56K modem. One file is
    253K, 150 x 260 px,
    > 599 frames @ 10fr/sec showing a preload of 96 frames
    (9.6 s), frame 1 is
    > 45K. The other is 197K, 800 x 150 px, 1009 frames @
    12fr/sec showing a
    > preload of 484 frames (40.3 s), frame 1 is 189K. Why
    does the preload
    > for the smaller file take 40.3 sec. while the larger
    file is only 9.6
    > sec.? And what does preload mean? It appears to indicate
    how long it
    > will take to download frame 1, is that correct? Why is
    the Frame 1 size
    > so different between the two? And why does the smaller
    file size have a
    > much larger frame 1 size. I just don't see why a smaller
    file should
    > take longer to load than a larger file.
    >
    > Any help would be appreciated.

  • Confused about the default schema

    Hi,
    I am a little bit confused about the schema concept.
    I want to create a new schema called APP and then create several users and roles based on the schema APP. The default schema for the users should be APP achema.
    How can I make the schema APP the default schema for the new users that I am creating?
    I feel that there are some schema design concepts that I have to learn. Is there any resource on the internet that I can read and learn more about oracle schema design best practices?
    Any help would be appreciated,
    Ali

    A schema holds object definitions, and in the case of table & index objects the schema also holds the data.
    A user owns the schema.
    Therefore the user 'owns the definitions (including any functions, procedures, sequences, tabels, etc.)
    Other users may be granted access to some, or all, of the objects in a schema. This is done through the 'GRANT ...' command. For example, consider the following steps:
    1) create user app_owner
    2) create table object test owned by the app_owwner
    3) create user app_user
    4) grant select, update, insert and delete on app_owner's test table to app_user
    5) add synonyms to avoid needing to qualify the table's schema name.
    done as follows:
    oracle@fuzzy:~> sqlplus system
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 3 20:07:32 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Create the app owner userid. Note there is no need to ever log in to that user, even to create tables.
    SQL> create user app_owner
      2  identified by xyz
      3  account lock
      4  quota unlimited on users
      5  default tablespace users
      6  temporary tablespace temp;
    User created.
    Creating objects in a schema can be done by providing the schema name, or by switching schema in newer versions of Oracle
    SQL> create table app_owner.test ( t number );
    Table created.
    Create a userid that will access the table. Set that userid up to access the database and (for future) give it the capability to create it's own synonyms
    SQL> create user app_user
      2  identified by xyz
      3  temporary tablespace temp;
    User created.
    SQL> grant create session to app_user;
    Grant succeeded.
    SQL> grant create synonym to app_user;
    Grant succeeded.
    Now give the user access to the objects
    SQL> grant select, update, insert, delete on app_owner.test to app_user;
    Grant succeeded.
    Let's test it out. Insert by qualifying the schema name on the object, then create a synonym to avoid using schema, and try it all using the synonym
    SQL> connect app_user/xyz
    Connected.
    SQL> insert into app_owner.test values (4);
    1 row created.
    SQL> create synonym test for app_owner.test;
    Synonym created.
    SQL> insert into test values (3);
    1 row created.
    SQL> select * from test;
             T
             4
             3
    SQL>  Note that some people want to use PUBLIC grants and PUBLIC synonyms. This is a real bad idea if you want to ensure long term security of the data and want to host several different applications in the same Oracle instance.
    This, and a whole lot more, is in the 'Concepts' manual for your version of the database at http://docs.oracle.com

  • Checking an object in Arraylist against empty string

    Hi all,
    Im storing a collection of objects in Arraylist.Among them , one of the objects has an empty string.How can i check whether an object contains empty string.I tried to check using the follwing snippet:
    ArrayList idList=new ArrayList();
    if((idList.get(0)) == null || idList.get(0) == "")
            Debug.log("*****ARRAY LIST IS BLANK 1********");Please help

    Here is a bit more deeper code:
    HashMap lookupMap= null;
    try {
              Object obj = util.lookUp(pid,attributeId,params); // The lookUp method returns an object.
                 Debug.log(11, " obj type: " + obj.getClass().getName());
            lookupMap = (HashMap) obj;
    Collection mapkeys = lookupMap.keySet();
    Iterator itKeySet = mapkeys.iterator();
    ArrayList idList = new ArrayList();
    ArrayList descList = new ArrayList();
    ArrayList lookupKeys = new ArrayList();
    while(itKeySet.hasNext())
            lookupKeys.add(itKeySet.next());
    for(int i=0; i<lookupKeys.size(); i++)
            String key = (String)lookupKeys.get(i);
        if(key != null && key.startsWith("1_"))
              idList =(ArrayList)lookupMap.get(lookupKeys.get(i));
            if(key != null && key.startsWith("2_"))
              descList=(ArrayList)lookupMap.get(lookupKeys.get(i));
            if(key != null && key.startsWith("1_") && (size == 1))
               descList=(ArrayList)lookupMap.get(lookupKeys.get(i));
    ArrayList id1=new ArrayList();
    int x=0;
          do
         if(!(idList.get(x)).equals(null) || !(idList.get(x)).equals(""))
                    id1.add(idList.get(x));
                    Debug.log("*****idList.get(x)********"+idList.get(x));
                    Debug.log("*****added to idlist.get(0)********");
                    break;
                  else
                    x++;
         }while(id1.size() == 0);

  • Error Stack in Expert Routine, Infos about Object Log

    Hi all,
    currently I try to find some information about using the error stack in combination with an expert routine. So far I know that I have to use the Object Log, which is already in place in my code for monitor messages.
    LOOP AT itab_input INTO wa_input.
    IF sy-subrc <> 0.
            CLEAR msg.
            msg-msgid = 'MY_CLASS'.
            msg-msgty = 'E'.
            msg-msgno = '002'.
            msg-msgv1 = v1.
            msg-msgv2 = v2.
            msg-msgv3 = v3.
            APPEND msg TO t_msg.
            " ??? Write wa_input to error stack???
            CONTINUE.
          ENDIF.
    ENDLOOP.
    Does somebody know how I could append wa_input to the error stack? Or does somebody have a good documentation about Object log?
    Thanks a lot!
    Nita

    Good Morning,
    thanks a lot for your input. I tried to implement this function, but I do not know where I could get the Segment Id from.
    Do you know what i_use_crosstab is used for? I think i_with_message should be set to 'X' if I want to write wa_input-record it to the error stack.
    CALL METHOD log->verify_record
              EXPORTING
                i_use_crosstab  = ''
                i_segid         = lv_segid
                i_record        = wa_input-record
                i_with_message  = 'X'
              RECEIVING
                r_skip          = lv_skip
              EXCEPTIONS
                too_many_errors = 1
                not_in_crosstab = 2
                OTHERS          = 3.
    From semantic point of view the coding should do following:
    - To avoid a second loop in my expert routine it should only check the current src record. If this is wrong, which I already determine in my coding, it should write the record in the error stack. If it is correct, it should check whether there are already records with the same semantic key in the error stack and if yes, add it also to it.
    - I assume that I have to delete this record manually from my src. package than.
    Cheers
    Nita

  • I am confused about something.  How do I read a book on my MacBook Pro?  I can't find the iBook app anywhere, which is what I use on my iPad.  The book I want to read is in my iTunes but I can't click on it.  My iBook library does not show up in iTunes.

    I am confused about something.  How do I read a book on my MacBook Pro?  I can't find the iBook app anywhere, which is what I use on my iPad.  The book I want to read is in my iTunes but I can't click on it.  Some of my iBooks show up in my iTunes but they are "grayed" out.  The only books that respond in iTunes are audiobooks and that's not what I'm looking for.  Is this a stupid question?

    Nevermind - I answered my own question, which is I CAN"T READ ANY BOOKS I purchased in iBooks on my MacBook Pro.  If I want to read on my mac I have to use Kindle or Nook.  Which means any book I've already purchased through iBooks has to be read on my iPad.  Kind of a drag because there are times when it's more convenient for me to read while I'm sitting with my Mac.

  • Confuse about the injecting entity in EJB 3.0?

    Hi all,
    I have an customersBean which is inherit from customersRemote and my problem is i' am little confuse about injecting the entity(customer).
    Where can you apply the EntityManagerFactory is it outside on EJB or Inside the EJB? means outside EJB is use the web application or java application. i have and example.
    this is inside on EJB...............
    public class CustomersBean implements com.savingsaccount.session.CustomersRemote {
    @PersistenceContext(unitName="SavingAccounts")
    EntityManagerFactory emf;
    EntityManager em;
    /** Creates a new instance of CustomersBean */
    public CustomersBean() {
    public void create(int id, String name, String address, String telno, String mobileno)
    try{
    //This is the entity.
    Customer _customer = new Customer();
    _customer.setId(id);
    _customer.setName(name.toString());
    _customer.setAddress(address.toString());
    _customer.setTelno(telno.toString());
    _customer.setMobileno(mobileno.toString());
    em = emf.createEntityManager();
    em.persist(_customer);
    emf.close();
    }catch(Exception ex){
    throw new EJBException(ex.toString());
    in web application, i'm using the @EJB in customer servlets.
    public class CustomerProcessServlet extends HttpServlet {
    @EJB
    private CustomersRemote customerBean;
    blah blah inject directly coming request field from jsp.
    }

    Hi all,
    I have an customersBean which is inherit from customersRemote and my problem is i' am little confuse about injecting the entity(customer).
    Where can you apply the EntityManagerFactory is it outside on EJB or Inside the EJB? means outside EJB is use the web application or java application. i have and example.
    this is inside on EJB...............
    public class CustomersBean implements com.savingsaccount.session.CustomersRemote {
    @PersistenceContext(unitName="SavingAccounts")
    EntityManagerFactory emf;
    EntityManager em;
    /** Creates a new instance of CustomersBean */
    public CustomersBean() {
    public void create(int id, String name, String address, String telno, String mobileno)
    try{
    //This is the entity.
    Customer _customer = new Customer();
    _customer.setId(id);
    _customer.setName(name.toString());
    _customer.setAddress(address.toString());
    _customer.setTelno(telno.toString());
    _customer.setMobileno(mobileno.toString());
    em = emf.createEntityManager();
    em.persist(_customer);
    emf.close();
    }catch(Exception ex){
    throw new EJBException(ex.toString());
    in web application, i'm using the @EJB in customer servlets.
    public class CustomerProcessServlet extends HttpServlet {
    @EJB
    private CustomersRemote customerBean;
    blah blah inject directly coming request field from jsp.
    }

  • Confused about logical table source

    Hi,
    I'm confused about logical table source(LTS), there are 'General', 'Column Mapping', 'Content' tabs in
    LTS, in General tab ,there are some information,like 'Map to there tables' and 'joins',
    just here, we have created relationships in physical layer and BMM layer, so I would like to ask what's the use of the 'joins' here?

    Hi Alpha,
    Valid query, when you establish a complex join it is always between a logical fact and dimension table.Consider a scenario,
    Example:w_person_dx is an extension table not directly joined to a fact but joins to a dimension w_person_d.
    When you model the person_d tables in BMM, you ll have a single logical table with w_person_d as source.If you have to pull columns from both w_person_d and w_person_dx tables in a report, you add dx table as inner join to persond table in the general tab.Now when you check your physical query, you can see the inner join fired between the two dimensions.
    Rgds,
    Dpka

Maybe you are looking for

  • Can't email via "Mail" anymore - don't know why (iPhoto2.0.1

    I've used the email feature on iPhoto 2.0.1 before.....and it opened up Apple Mail program etc. For some werid reason.....that email icon is now and AOL icon. I go to Preferences in iPhoto and try to choose my default emial program and AOL is chosen

  • Include report for class not found

    Hi all,     I am getting an error in test system after transporting from devolopment system IN SE24,if do a syntax check for the class include report CL_EX_TEST======CO not found .But in devolopment system,i am not getting any error. ANybody plz help

  • [SOLVED] No sound upon booting up today

    I booted into Arch this morning and I noticed that none of my applications were giving off any sound despite the fact that the master control in alsamixer was unmuted and at 100%. My PC is running a dual-boot system of Arch and Windows 7. I'm running

  • Image Map Rollovers

    I need to create an image map (in Dreamweaver CS3). But I need the multiple hotspot polygons to activate an image rollover for the base image. It is basically a world map. When I roll over one of the continents (a hotspot) I need a swap image to come

  • Why is my shockwave player always crashing while playing zynga farmville2 on FB?

    while playing zynga farmville2 on FB, shockwave player continually crashes.  Sometimes it stops before the game finishes loading.  I usually end up killing the page.  I've used three different browsers and have problems in all three.  I've updated go